Use Arduino CLI or Web-API to update SSL root certificate

Using several WiFi boards for a product (i.e. MKRWiFi1010 or Nano RP2040 Connect boards), I would like to use the Arduino Command Line Tool (CLI) to update the SSL root certificate.

Just the way I can do it for prototyping with the Arduino IDE-->WiFi101/WiFiNINA Firmware/Certificates Updater Tool.

The reason it that we can not use the Arduino IDE to do so for a production ready process. But rather I would like to use our own application that does the necessary production-ready steps for our Arduino boards using the Arduino CLI.

Also a Web-API to do the SSL root certificate Over-the-Air could be an option. However I did not find any solution yet. And also, I would prefer the CLI option over the Web-API solution due to security. But either one is better than using the Arduino IDE for this.

Hi @skuenstler. Arduino created a separate command line tool for doing this:

https://arduino.github.io/arduino-fwuploader/latest/

You can follow the instructions at the link above to install and use it for updating SSL root certificates on your MKR WiFi 1010 and Nano RP2040 Connect boards.

This is the same tool used under the hood by the Arduino IDE 2.x and by Arduino IoT Cloud.

Thank you very much ptillisch, this is exactly what we need.

You're welcome. I'm glad if I was able to be of assistance.

It is really great that we have the option of a dedicated command line tool that provides the same functionality as the GUI.

Hi ptillisch,

I am working on a product that I am guessing will require updates to website SSL certificates when they expire. Do you know if there is a sketch to upload the SSL certificates to the NINA?

I would like to have the SAMD pull the sketch from a server, update the SSL certificates and then return back to the main sketch.

Is there a way that I can accomplish this or update SSL certificates without having to plug into the arduino and use the GUI or command line?

Thanks,
Joe

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.