Re:ESP32 Buyer’s Guide: Different Chips, Firmware, Sensors
by beardyw on Saturday February 04, 2023 @07:52AM
(#34654076)
I did some playing around with ESP8266 and found dealing with HTTPS to be a pain when certificates changed. Have things improved?
[ Parent
| on HN ]
Re:ESP32 Buyer’s Guide: Different Chips, Firmware, Sensors
by eitherway on Saturday February 04, 2023 @09:09AM
(#34654592)
Encryption in General on the ESP32 is difficult.
I haven't used it, but there now seems to be some good support in the ESP-IDF Framework: https://docs.espressif.com/projects/esp-idf/en/latest/esp32/...
Re:ESP32 Buyer’s Guide: Different Chips, Firmware, Sensors
by realharo on Saturday February 04, 2023 @09:42AM
(#34654829)
If you're just making HTTPS requests to your own servers, you can simply include the root certificate of the CA you're using, pass it to the config when calling `esp_http_client_init` (https://docs.espressif.com/projects/esp-idf/en/latest/esp32c...) and then you probably don't have to worry about it for a long time, it will work through your regular certificate rotation.
See https://docs.espressif.com/projects/esp-idf/en/latest/esp32c...
If you need to make requests to other people's servers, there is a tool to generate and include a bundle from Mozilla, that you can update in the future as part of an OTA update (https://docs.espressif.com/projects/esp-idf/en/latest/esp32c...).