i am using simple_ota example to update firmware, my firmware file is hosted on microsoft blob storage, but during init this error is being returnedesp-tls-mbedtls: mbedtls_x509_crt_parse returned -0x2180MBEDTLS_ERR_X509_INVALID_FORMAT
Anyway, I think our API does support your use case (certificate and key in the same file, in PEM format) if you use mbedtls_x509_crt_parse_file() and mbedtls_pk_parse_keyfile() instead. It might be slightly less efficient as your mmap()-based approach, as the file needs to be rea...
int mbedtls_x509_crt_parse_der( mbedtls_x509_crt *chain, const unsigned char *buf, size_t buflen ). Function exits when compared if( crt != chain ) mbedtls_free( crt ); But i am hopeless regarding this problem.please help. Tell me what could be the problem? Thank you. Dmitrii #d...
Hello, I’m starting to use the mbedTLS library. I have some problem in the mbedtls_x509_crt_parse function. I use this calling ret = mbedtls_x509_crt_parse(&cacert, (const unsigned char *)mbedtls_m2mqtt_srv_crt, mbedtls_m2mqtt_srv_crt_len ); If I use this Certificate, it works: ...
Summary I generated a DER format X509 certificate by OPENSSL, however, when I pass the hex string to mbedtls_x509_crt_parse_der(), it results in MBEDTLS_ERR_ASN1_INVALID_DATA error in function mbedtls_asn1_get_bitstring_null(). The hex s...
An open source, portable, easy to use, readable and flexible TLS library, and reference implementation of the PSA Cryptography API. Releases are on a varying cadence, typically around 3 - 6 months between releases. - x509parse_crt() and x509parse_crt_der
I enabled MBEDTLS_RSA_C and am trying to use built-in certificate (from certs.c) using: mbedtls_x509_crt_parse(&serverCertificate, (const unsigned char *)mbedtls_test_srv_crt, mbedtls_test_srv_crt_len); However it returns -0x3B00! What could be a reason for it? Here is the certific...