OTA 固件升级服务器无法成功连接,求助感谢!

GouDiheng
Posts: 2
Joined: Fri Aug 02, 2024 4:18 am

OTA 固件升级服务器无法成功连接,求助感谢!

Postby GouDiheng » Fri Aug 02, 2024 4:26 am

按照官方文档:
openssl req -x509 -newkey rsa:2048 -keyout c:\\ca_key.pem -out c:\\ca_cert.pem -days 10000 -nodes
创建了私钥和证书,
openssl s_server -WWW -key c:\\ca_key.pem -cert c:\\ca_cert.pem -port 8070
并成功开启了相关服务;
第一次尝试成功,可以正常OTA升级固件;

后因业务需要重新创建私钥和证书,相同步骤重新开启相关服务后无法成功连接服务器,报错如下:
E (23955) esp-tls-mbedtls: mbedtls_ssl_handshake returned -0x2700
I (23955) esp-tls-mbedtls: Failed to verify peer certificate!
E (23955) esp-tls: Failed to open new connection
E (23965) transport_base: Failed to open a new connection
E (23965) HTTP_CLIENT: Connection failed, sock < 0
E (23975) esp_https_ota: Failed to open HTTP connection: ESP_ERR_HTTP_CONNECT
E (23985) esp_https_ota: Failed to establish HTTP connection
E (23985) >>>: ESP HTTPS OTA Begin failed!

求解决办法,产品着急发布,非常感谢!

GouDiheng
Posts: 2
Joined: Fri Aug 02, 2024 4:18 am

Re: OTA 固件升级服务器无法成功连接,求助感谢!

Postby GouDiheng » Wed Aug 07, 2024 4:20 pm

没人吗?

Who is online

Users browsing this forum: No registered users and 17 guests