Skip to content

Add certificate bundle capability to WiFiClientSecure #6106

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jan 19, 2022

Conversation

esp32wrangler
Copy link
Contributor

Summary

Enable usage of the ESP32 IDF's certificate bundle for WiFiClientSecure connections.

Adds the ability to load a bundle or root certificates and use them for authenticating SSL servers.

Intends to fulfill the feature request #3646

Impact

The changes impact only the WiFiClientSecure component. Unless the user invokes WiFiClientSecure::setCACertBundle, the behavior of WiFiClientSecure remains identical. If that function is called, and no CA certificate is provided to WiFiClientSecure, then the bundle will be used instead.

The actual certificate bundle parsing and authentication callback functionality is stable, proven ESP IDF code. Only the glue code that connects WiFiClientSecure to the bunde code is bespoke.

New code based on work from Onno-Dirkzwager, Duckle29, kubo6472, meltdown03, kinafu and others in issue 3646.

Related links

Enable usage of the ESP32 IDF's certificate bundle for WiFiClientSecure connections.

Adds the ability to load a bundle or root certificates and use them for authenticating SSL servers.

Based on work from Onno-Dirkzwager, Duckle29, kubo6472, meltdown03, kinafu and others.

See also:
- https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/protocols/esp_crt_bundle.html
- espressif#3646
- libraries/WiFiClientSecure/README.md
@CLAassistant
Copy link

CLAassistant commented Jan 7, 2022

CLA assistant check
All committers have signed the CLA.

@me-no-dev me-no-dev merged commit cbfcfbf into espressif:master Jan 19, 2022
@me-no-dev
Copy link
Member

Thanks @esp32wrangler :) Merged!

Oozlum added a commit to Oozlum/WebSockets2_Generic that referenced this pull request Mar 24, 2022
WiFiClientSecure can now use a bundle of certificates to authenticate a
server.  See espressif/arduino-esp32#6106
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants