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?
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