esp32 ota example error

icy_gau
Posts: 5
Joined: Wed Feb 02, 2022 5:34 pm

esp32 ota example error

Postby icy_gau » Wed Feb 02, 2022 6:10 pm

hi, i was referring to advanced ota example. im getting below error:
I (5624) advanced_https_ota_example: Starting Advanced OTA example
E (5904) esp-tls-mbedtls: mbedtls_ssl_handshake returned -0x2700
I (5904) esp-tls-mbedtls: Failed to verify peer certificate!
I (5914) esp-tls-mbedtls: verification info: ! The certificate is not correctly signed by the trusted CA

E (5924) esp-tls: Failed to open new connection
E (5924) TRANS_SSL: Failed to open a new connection
E (5934) HTTP_CLIENT: Connection failed, sock < 0
E (5934) esp_https_ota: Failed to open HTTP connection: ESP_ERR_HTTP_CONNECT
E (5944) esp_https_ota: Failed to establish HTTP connection
E (5954) advanced_https_ota_example: ESP HTTPS OTA Begin failed
W (6544) wifi:<ba-del>idx
W (9604) wifi:<ba-add>idx:0 (ifx:0, e8:48:b8:61:bb:81), tid:0, ssn:21, winSize:64
W (10564) wifi:<ba-del>idx
W (13594) wifi:<ba-add>idx:0 (ifx:0, e8:48:b8:61:bb:81), tid:0, ssn:22, winSize:64
W (14594) wifi:<ba-del>idx

please suggest how to resolve. what to steps to generate certificate and where to include in project.

ESP_Mahavir
Posts: 190
Joined: Wed Jan 24, 2018 6:51 am

Re: esp32 ota example error

Postby ESP_Mahavir » Thu Feb 03, 2022 2:13 pm

Please check documentation at https://github.com/espressif/esp-idf/bl ... /README.md

Some of the similar issues that you may find useful in this context:
https://github.com/espressif/esp-idf/issues/6833
https://github.com/espressif/esp-idf/issues/4657

icy_gau
Posts: 5
Joined: Wed Feb 02, 2022 5:34 pm

Re: esp32 ota example error

Postby icy_gau » Fri Feb 04, 2022 6:38 am

hi.. thanks for info... i was using aws s3 to upload binary.. please can i know how to generate certificates

ESP_Mahavir
Posts: 190
Joined: Wed Jan 24, 2018 6:51 am

Re: esp32 ota example error

Postby ESP_Mahavir » Fri Feb 04, 2022 9:15 am

i was using aws s3 to upload binary.. please can i know how to generate certificates
https://github.com/espressif/esp-idf/is ... -460917118

icy_gau
Posts: 5
Joined: Wed Feb 02, 2022 5:34 pm

Re: esp32 ota example error

Postby icy_gau » Fri Feb 04, 2022 10:13 am

thanks for quick response ... but with command
openssl s_client -showcerts -connect s3.amazonaws.com:443 < /dev/null
i get : "The system cannot find the path specified." error.
please guide how to resolve

ESP_Shubham
Posts: 8
Joined: Mon Oct 07, 2019 6:09 am

Re: esp32 ota example error

Postby ESP_Shubham » Wed Feb 09, 2022 10:03 am

Hi, I am attaching certificate required for connecting to S3 server. Please try using the same.
ca_cert.pem.zip
(1.7 KiB) Downloaded 625 times

Who is online

Users browsing this forum: Bing [Bot] and 223 guests