Currently I'm working on a device which transmits some data over WiFi to an MQTT server. The configuration of the WiFi credentials and the MQTT server are done via a webpage. The webpage is working correctly via HTTP and everything is working as expected.
Last week I tried to switch the HTTP server for the HTTPS server. I added the example certificates and the 'httpd_ssl_start' function call. When trying to connect to the server on port 443 (using Chrome or Edge) I get the following log:
Code: Select all
I (32827) esp_https_server: performing session handshake I (32837) mbedtls: ssl_tls.c:8084 => handshake I (32837) mbedtls: ssl_srv.c:4259 server state: 0 I (32837) mbedtls: ssl_tls.c:2755 => flush output I (32837) mbedtls: ssl_tls.c:2767 <= flush output I (32847) mbedtls: ssl_srv.c:4259 server state: 1 I (32847) mbedtls: ssl_tls.c:2755 => flush output I (32857) mbedtls: ssl_tls.c:2767 <= flush output I (32857) mbedtls: ssl_srv.c:1211 => parse client hello I (32867) mbedtls: ssl_tls.c:2536 => fetch input I (32877) mbedtls: ssl_tls.c:2697 in_left: 0, nb_want: 5 I (32877) mbedtls: ssl_tls.c:2721 in_left: 0, nb_want: 5 I (32887) mbedtls: ssl_tls.c:2722 ssl->f_recv(_timeout)() returned 5 (-0xfffffffb) I (32897) mbedtls: ssl_tls.c:2742 <= fetch input W (32897) mbedtls: ssl_srv.c:1259 bad client hello message I (32907) mbedtls: ssl_tls.c:8094 <= handshake E (32907) esp-tls-mbedtls: mbedtls_ssl_handshake returned -30976 E (32917) esp_https_server: esp_tls_create_server_session failed W (32927) httpd: httpd_accept_conn: session creation failed W (32927) httpd: httpd_server: error accepting new connection
The same error code pops up when I try to run the bare HTTPS server example available in the IDF package. I also generated a certificate for myself and added that to the example, but to no avail.
Are there any users that are experiencing the same error or is there anybody that can shed some light on this issue?
I'm using ESP IDF on Windows in Visual Studio Code using the Espressif IDF extension. The hardware I'm developing on incorporates a ESP32-WROOM-32E.
Thanks in advance