Closed daz closed 6 years ago
Hi @daz , that's great! Thank you so much for diving into this. I like the approach a lot since it lets the user upload the certificates in the usual way but it also allows us to make a wrapper sketch that interacts with an external loader (like WiFi101 one https://github.com/arduino-libraries/WiFi101-FirmwareUpdater-Plugin). Feel free to propose a PR when ready or also earlier if you need some feedback from the community!
Added PR #24
I've added an API for importing certificates, with an example that connects to AWS IoT which uses TLS 1.2.
It currently works like this:
GSMSecurity
profileGSMSSLClient
clientI opted for the profile approach rather than add methods to
GSMClient
because the modem can only hold 9 certificates in total, and they persist between boots. Importing certs after 9 will fail, so we need a way to list and remove them, which imo would bloat theGSMClient
class.Here's my fork, I didn't wanna dive in and create a pull request in case there's a better way to tackle this
https://github.com/daz/MKRGSM