Page 1 of 1

esp32 native ota- tls certificate verification

Posted: Fri May 22, 2020 8:19 am
by Swagger
Hi, I was working native OTA update. I had followed the instructions in the esp32 tutorials to generate the certificates.
Link:https://github.com/espressif/esp-idf/tr ... tps-server

First, I tried to develop a certificate on my wamp server. I was able to download the bin file in when I enter the URL in the browser.
"https://192.168.x.x:8070/hello-world.bin"

but when i tried from esp32 native ota code, I ended up in the following error.
-------------------------------------------------------------------------------------------

E (8982) esp-tls: mbedtls_ssl_handshake returned -0x7200
I (8982) esp-tls: Certificate verified.
E (8982) esp-tls: Failed to open new connection
E (8982) TRANS_SSL: Failed to open a new connection
E (8992) HTTP_CLIENT: Connection failed, sock < 0
E (9002) native_ota_example: Failed to open HTTP connection: ESP_ERR_HTTP_CONNEC
T
E (9002) native_ota_example: Exiting task due to fatal error...


--------------------------------------------------------------------------------------------
it says certificate got verified but still not able to open a new connection.