Files
arduinoWebSockets/examples/esp32_pio/WebSocketClientSSLBundle
Moritz Ulmer c5e7a5eb08 Add support for CA bundles (#885)
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
2024-06-17 13:09:37 +02:00
..
2024-06-17 13:09:37 +02:00
2024-06-17 13:09:37 +02:00
2024-06-17 13:09:37 +02:00
2024-06-17 13:09:37 +02:00

This is a PlatformIO project that uses a modified WiFiClientSecure library (in lib) to implement proper SSL support using root certificates as discussed here

It is based on the work by meltdonw03 in that thread, and the BasicHttpsClient example from the arduino-esp32 project.

Just copy include/secrets.hpp.template to include/secrets.hpp and fill in your WiFi details. Then it should be pretty much ready to go. The local WiFiClientSecure library should take priority. Debug is set to verbose, so you'll see a lot of noise, but there should also be this readme on success :)

To get a current CA cert bundle download it from curl's website.