Using client certificates for HTTPS requests

geschema
Posts: 5
Joined: Thu May 06, 2021 7:59 am

Using client certificates for HTTPS requests

Postby geschema » Thu May 06, 2021 8:24 am

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.

RichPiano
Posts: 123
Joined: Mon May 18, 2020 2:51 pm

Re: Using client certificates for HTTPS requests

Postby RichPiano » Thu May 06, 2021 2:32 pm

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

Who is online

Users browsing this forum: Baidu [Spider], Bing [Bot] and 82 guests