mikalhart / ESP32-OTA-Pull

An ESP32/Arduino library for doing easy "pull"-based OTA ("Over The Air") updates
MIT License
51 stars 16 forks source link

Https support #13

Open MattPellegrini opened 5 months ago

MattPellegrini commented 5 months ago

As far as I can tell, the HTTPClient used here will use this method HTTP - have I understood that correctly?

This is backed-up by a few logs of: unexpected protocol: https, expected http and WARNING: Skipping SSL Verification. INSECURE!

Is there a way to support https that I've missed?

mrcodetastic commented 3 days ago

HTTPS works perfectly fine, it is just the TLS certificate isn't validated.

Should certificate validation be required you'd just need to amend the library code when making a https call, similar to what is done here:

https://github.com/espressif/arduino-esp32/blob/master/libraries/HTTPClient/examples/BasicHttpsClient/BasicHttpsClient.ino