[ ardunio ] create CACert for client.setCACert_P()

On firefox,

Click on the ‘>’ icon.

Click on “More Information” button at the bottom of the window.

In the new window titled “Page Info – https://api.github.com”, click on the “View Certificate” button.

In the “Certificate Viewer” window, click on the “Details” tab.

In the “Certificate Hierarchy” top window pane click on “DigiCert High Assurance EV Root CA” so it is highlighted.

Click on the “Export…” button at the bottom of the page.

At the bottom of the page select “X.509 Certificate (DER)” format then click on Save.

Use your favorite program to convert the binary DER format to ASCII. Here is what I do.

$ xxd -i DigiCertHighAssuranceEVRootCA.crt.der >cacert.h

ref : https://www.esp8266.com/viewtopic.php?p=74154

, https://github.com/esp8266/Arduino/tree/d5bb4a99f64a843e28b119d174b90c910516458f/libraries/ESP8266WiFi/examples/HTTPSRequestCACert

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s