This is an example code for the ESP8266 that shows how to make https requests using a certificate store and how to update that certificate store remotely.
git clone https://github.com/mtzfederico/mtzfederico-esp8266-certStore-example
You can generate the certificate store with this python program or with my custom one custom-certs-from-mozilla.py
, which can be found in this repo.
I have only tested it using PlatformIO. If you are not using PlatformIO, I highly recommend trying it out. You can find getting started instructions from Random Nerd Tutorials here
You can find LittleFS upload instructions for PlatformIO here. If you want to use the Arduino IDE, you can find instructions here
You can use any of this code in your projects