Page 1 of 1

Using client certificates for HTTPS requests

Posted: Thu May 06, 2021 8:24 am
by geschema
I need to upgrade my ESP32 code to use a client certificate for secure communication with a remote server.

So far, I've used the

Code: Select all

esp_http_client
library to issue the HTTP requests but as far as I've seen, this library doesn't support client certificates. What are my options?

Thanks,
Guy.

Re: Using client certificates for HTTPS requests

Posted: Thu May 06, 2021 2:32 pm
by RichPiano
I think it does. Looking at esp_http_client.c you'll find the config struct esp_http_client_config_t, which contains ssl configuration options.

Afaik there's also an example for it in the examples folder.

EDIT:

https://github.com/espressif/esp-idf/tr ... ps_request
https://github.com/espressif/esp-idf/tr ... _https_ota