How to create certificate for WiFiClientSecure.setCACert_P ?
Posted: Fri Feb 23, 2018 3:21 pm
Hi all,
can anybody tell me how the value of the caCert[] variable in the CACert.ino file from the example https://github.com/esp8266/Arduino/blob ... CACert.ino was created? It seems to be a hexadecimal representation of the api.github.com root certificate in DER format. I want to connect to a different site with the WiFiClientSecure library but I don't know how to get the root certificate of this site converted into this format so that I can pass it to the WiFiClientSecure.setCACert_P function. And how to calculate the length of this certificate representation as defined in the same file and in this example "969"?
Thanks and best regards,
Michael
can anybody tell me how the value of the caCert[] variable in the CACert.ino file from the example https://github.com/esp8266/Arduino/blob ... CACert.ino was created? It seems to be a hexadecimal representation of the api.github.com root certificate in DER format. I want to connect to a different site with the WiFiClientSecure library but I don't know how to get the root certificate of this site converted into this format so that I can pass it to the WiFiClientSecure.setCACert_P function. And how to calculate the length of this certificate representation as defined in the same file and in this example "969"?
Thanks and best regards,
Michael