Websocket TLS session renegotiation

Hello,

I am using the WebSocketSecure class for a long-lived connection in our application on ESP32. Our TLS / SSL layer in C is managed by mbedTLS. I want to be able to perform a TLS session renegotiation on my WebSocketSecure, like the mbedtls_ssl_renegotiate function in C. How can I achieve that?

Best regards,
Yoann Jézégou, developer at Otodo

Hi @yoann

We do not have a way to trigger the renegotiation at application level, like the mbedtls_ssl_renegotiate at BSP level. However if the server is trying to renegotiate it will work. You could call the mbedtls_ssl_renegotiate though SNI: Simple Native Interface (SNI) — MicroEJ Documentation

Best Regards,
Gaëtan for MicroEJ

Hello,

Thanks for your answer, we will check if we can trigger the renegotiation from our server.

Best regards,
Yoann Jézégou, developer at Otodo