-
Notifications
You must be signed in to change notification settings - Fork 53
Description
AWS IoT would like to see a certificate -per device-
It would be nice to be able to provision devices with their unique certificate on the fly.
Either by storing the certificate in EEPROM or on filesystem (I'm using LittleFS at this stage).
The SSLClientParameters::fromPEM() is used to provision the certificate information to the instance but at the moment of execution LittleFS is not approachable (this will become approachable once setup() starts; I'm using ArduinoIDE here)
Possible solution
Providing two reserved char arrays (key and cert) that will be filled once LittleFS has started in order to read out the certificates from the filesystem and put them in memory. I would like to provide a hard-coded "fallback" certificate and key which I could use to onboard devices.
Being able to call functions that change the certificate of the global instance would also be fine and probably even more flexible and generic.
I might be completely missing existing option due to lack of knowledge or general incompetence (one of my strong suits).
Having an example that shows how to deal with this would be great!