错误-0x2700 MBEDTLS_ERR_X509_CERT_VERIFY_FAILED并返回。 您还应该检查验证标志。 I used the server to give me the root certificate in the browser test and the server handshake is able to pass,But when i use the Mbed. IT is faild and it return like this: ...
intmbedtls_x509_crt_verify_info(char *buf, size_t size, const char *prefix, uint32_t flags) Returns an informational string about the verification status of a certificate. intmbedtls_x509_crt_verify(mbedtls_x509_crt*crt,mbedtls_x509_crt*trust_ca,mbedtls_x509_crl*ca_crl, const char *cn,...
For fatal * errors, a specific error code should be used (different * from MBEDTLS_ERR_X509_CERT_VERIFY_FAILED which should not * be returned at this point), or MBEDTLS_ERR_X509_FATAL_ERROR * can be used if no better code is available. * * \note In case verification failed, the res...
For fatal errors, a specific error code should be used (different from MBEDTLS_ERR_X509_CERT_VERIFY_FAILED which should not be returned at this point), or MBEDTLS_ERR_X509_FATAL_ERROR can be used if no better code is available. Contributor Author RonEld commented Aug 27, 2018 @Marian-...
For fatal * errors, a specific error code should be used (different * from MBEDTLS_ERR_X509_CERT_VERIFY_FAILED which should not * be returned at this point), or MBEDTLS_ERR_X509_FATAL_ERROR * can be used if no better code is available. * * \note In case verification failed, the ...
NULL);if(err !=0) { logger->info(TAG,"Last esp error code: 0x%x\n", err); logger->info(TAG,"Last mbedtls failure: 0x%x\n", mbedtls_err); logger->info(TAG,"Error as int: %d\n", mbedtls_err); logger->info(TAG,"Define as int: %d\n", MBEDTLS_ERR_X509_CERT_VERIFY_FAILED)...
E (546560) esp-x509-crt-bundle: PK verify failedwitherror FFFFBD70 E (546560) esp-x509-crt-bundle: Failed to verify certificate E (546560) esp-tls-mbedtls: mbedtls_ssl_handshake returned-0x3000E (546570) esp-tls: Failed to opennewconnection E (546570) TRANSPORT_BASE: Failed to open a...
case -(MBEDTLS_ERR_ECP_FEATURE_UNAVAILABLE): return( "ECP - The requested feature is not available, for example, the requested curve is not supported" ); case -(MBEDTLS_ERR_ECP_VERIFY_FAILED): return( "ECP - The signature is not valid" ); case -(MBEDTLS_ERR_ECP_ALLOC...
#define MBEDTLS_ERR_SSL_BAD_HS_CERTIFICATE_VERIFY -0x7D80 /**< Processing of the CertificateVerify handshake message failed. */ 00088 #define MBEDTLS_ERR_SSL_BAD_HS_CHANGE_CIPHER_SPEC -0x7E00 /**< Processing of the ChangeCipherSpec handshake message failed. */ ...
else if(ret & MBEDTLS_X509_BADCERT_CN_MISMATCH) failf(data, "Cert verify failed: BADCERT_CN_MISMATCH"); else if(ret & MBEDTLS_X509_BADCERT_NOT_TRUSTED) failf(data, "Cert verify failed: BADCERT_NOT_TRUSTED"); else if(ret & MBEDTLS_X509_BADCERT_FUTURE) ...