mbed-tls 错误代码 -0x2700 是什么意思?
如果你的微控制器(如 ESP32)上看到类似以下错误消息:
mbedtls_error_output.txt
E (137011) esp-tls-mbedtls: mbedtls_ssl_handshake returned -0x2700这表示 MBEDTLS_ERR_X509_CERT_VERIFY_FAILED。
要么你在服务器上使用了错误的证书,要么你在 mbed-tls 端使用了错误的证书来验证证书。
为了检查服务器端,使用 OpenSSL 检查服务器的 TLS 证书通常很有帮助:
openssl_s_client_example.sh
openssl s_client -connect myhostname.com:443Check out similar posts by category:
Arduino, Embedded, ESP8266/ESP32, Mbed
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow