mbedTLS server mode
Posted: Thu Jun 01, 2017 1:06 pm
Hello!
I'm working on a project using mbedTLS in server mode (MBEDTLS_SSL_IS_SERVER).
I found this example from the official github repo:
https://github.com/ARMmbed/mbedtls/blob ... d_server.c
and I'm adapting it for esp-idf... at the moment to keep it simple I'm not working with threads (1 connection served at a time).
I'm using a certificate signed by our company's internal CA, that is "trusted" by all our browsers.
I'm facing some problems during the handshake phase: sometimes it fails with EOF error, sometimes it works but then the browser closes the connection without sending data... the result is that everything is much slower than the same example without SSL (plain http with lwip).
Does anyone worked with mbedTLS in server mode? I see that in esp-idf the example provided is using OpenSSL instead... is it better?
Thanks!
I'm working on a project using mbedTLS in server mode (MBEDTLS_SSL_IS_SERVER).
I found this example from the official github repo:
https://github.com/ARMmbed/mbedtls/blob ... d_server.c
and I'm adapting it for esp-idf... at the moment to keep it simple I'm not working with threads (1 connection served at a time).
I'm using a certificate signed by our company's internal CA, that is "trusted" by all our browsers.
I'm facing some problems during the handshake phase: sometimes it fails with EOF error, sometimes it works but then the browser closes the connection without sending data... the result is that everything is much slower than the same example without SSL (plain http with lwip).
Does anyone worked with mbedTLS in server mode? I see that in esp-idf the example provided is using OpenSSL instead... is it better?
Thanks!