What does mbed-tls error code -0x2700 mean?
If you see an error message like the following one on your microcontroller (such as ESP32):
mbedtls_error_output.txt
E (137011) esp-tls-mbedtls: mbedtls_ssl_handshake returned -0x2700
this means MBEDTLS_ERR_X509_CERT_VERIFY_FAILED
.
Either you are using the wrong certificate on the server or you are using the wrong certificate on the mbed-tls side for verifying the certificate.
In order to check the server side, it is often helpful to check the server’s TLS certificate using OpenSSL:
openssl_s_client_example.sh
openssl s_client -connect myhostname.com:443
Check 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