Hello Tried to execute code from file mbedtls/programs/ssl/mini_client.c I get an error when calling the function 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 ); Tell me what could be the problem? Sincerely, development engineer, Shabrov Dmitrii
Понедельник, 31 января 2022, 16:49 +03:00 от Dmitrij Shabroff dshabroff@mail.ru: Good afternoon. I am a microcontroller product designer. I ported MBED TLS to STM 32L471 microcontroller. While I do not understand how can I use the certificate. My customer gave me a certificate in the form of a center2m.com.cer file. The file contains the 3 fields: -----BEGIN CERTIFICATE----- MIIGVzCCBT+gAwIBAgIMEnU/ ... -----END CERTIFICATE----- -----BEGIN CERTIFICATE----- MIIET ... -----END CERTIFICATE----- -----BEGIN CERTIFICATE----- MIDDX ... -----END CERTIFICATE----- tell me please, how to port my certificate to certs.c file. The question is which fields to insert where? Please help. No one can answer this question except you. Sincerely, development engineer, Shabrov Dmitrii