Skip to content
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

Add support for CA bundles #885

Merged
merged 8 commits into from
Jun 17, 2024
Merged

Add support for CA bundles #885

merged 8 commits into from
Jun 17, 2024

Conversation

moritz89
Copy link
Contributor

Instead of only a single CA cert, support CA bundles to verify the TLS connections.

https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/protocols/esp_crt_bundle.html

To add support, one option is to add a new constructor that accepts a pointer and then calls setCACertBundle on the WiFiClientSecure instance.

Espressif supports these bundles via an archive that reduces the required flash memory and only loads the CA indexes instead of the entire certificate into memory. The respective cert is then loaded on TLS connection setup.

See #884

Why:

- Allow CA cert bundles to be used

This change addresses the need by:

- Adding a constructor that takes a pointer to the bundle
- Setting the WiFiClientSecure to use the bundle
- Adding an example
@Links2004 Links2004 merged commit c5e7a5e into Links2004:master Jun 17, 2024
37 checks passed
@Links2004
Copy link
Owner

Links2004 commented Jun 17, 2024

thanks for the contribution, will create a release soon

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.

2 participants