SSLClient
SSLClient copied to clipboard
how to set the root certificate in pem format as a trust anchor
I have the root certificate to verify the server identity in the below format, how to set this out.
const char root_ca[] = "-----BEGIN CERTIFICATE-----\n" "MIIDpDCCAowCCQC7mCk5Iu3YmDANBgkqhkiG9w0BAQUFADCBkzELMAkGA1UEBhMC\n" ... "-----END CERTIFICATE-----\n";
I checked out the example codes but couldn't find the solution.