ESP32 support for HTTPS with root certificate

nir.k.dev
Posts: 2
Joined: Sun Jul 24, 2016 7:49 am

ESP32 support for HTTPS with root certificate

Postby nir.k.dev » Tue Nov 01, 2016 4:04 pm

Hello,
Does the ESP32 currently support WiFi HTTPS communication with root certificate?
Does is support domain name verification?

Thanks,
Nir

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: ESP32 support for HTTPS with root certificate

Postby ESP_Angus » Tue Nov 01, 2016 10:22 pm

Hi Nir,

Yes! There is an example in esp-idf that does this:
https://github.com/espressif/esp-idf/tr ... ps_request

Including verifying the server cert & name match.

Note that we can't load a full set of CA root certrificates into the ESP32 due to size constraints, so you have to load the root cert(s) for the CA(s) you are using, only. The example does this.

We know that manually performing an HTTPS get via a raw socket is still pretty lo-fi. We hope to add an HTTP client library in the near future.


Angus

Who is online

Users browsing this forum: Bing [Bot], BivvyCoder, Google [Bot] and 83 guests