Topic: [SOLVED] adding my own certificates
Hallo,
I'm trying to add my certificates to the wolfssl_client example in Espressif
https://github.com/wolfSSL/wolfssl/tree … ssl_client
however, it doesn't work with me to add them (ca, crt, key)...
For example, I've tried to add my PEM-formatted CA certificate with helping of this API:
wolfSSL_CTX_load_verify_buffer() as follows:
.
.
.
static const char* ca_cert_der_2048_test =
"-----BEGIN CERTIFICATE-----\n"
.
.
"-----END CERTIFICATE-----";
.
.
wolfSSL_CTX_load_verify_buffer(ctx, (const byte*)ca_cert_der_2048_test,
sizeof(ca_cert_der_2048_test), WOLFSSL_FILETYPE_PEM)
OR with this API:
wolfSSL_CTX_load_verify_locations() as follows:
.
.
.
wolfSSL_CTX_load_verify_locations(ctx, "./ca.pem", NULL)
.
.
.
Any ideas to do it right and add my own certificates to this example?
P.S. see attachment in order to see the c file
thanks,