SSLClient icon indicating copy to clipboard operation
SSLClient copied to clipboard

how to set the root certificate in pem format as a trust anchor

Open narangmayank opened this issue 1 year ago • 12 comments

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.

narangmayank avatar Mar 02 '23 10:03 narangmayank