Is the WiFi101 / WiFiNINA Firmaware/Certificates Updater mandatory to upload SSL root certificates to NANO 33 IoT? Is there any other way to do it. Using the Updater SW it's kind of frustrating...Could it be possible do it with some library and commands in the beginning of the .cpp?
What is the usual structure of the certificate?
AI recommends something like this (I was not able to get it work?):
#include <WiFiNINA.h>
const char* rootCA = \
"-----BEGIN CERTIFICATE-----\n"
"MIID....your root certificate data here...\n"
"-----END CERTIFICATE-----\n";
WiFiSSLClient client;
void setup() {
Serial.begin(115200);
while (!Serial);
if (WiFi.status() == WL_NO_MODULE) {
Serial.println("Communication with WiFi module failed!");
while (true);
}
// Set the SSL certificate dynamically
client.setRootCA(rootCA);
if (client.connect("example.com", 443)) {
Serial.println("Connected with custom root certificate!");
} else {
Serial.println("Connection failed.");
}
}
void loop() {
}
On thing that I noticed too is that when you compile the WiFiNINA firmware updater and when you try to upload the certificates it gives error many times to make sure that the firmware updater is uploaded and so on.....
...For me it helped when you take the USB cord off and plug it in after the firmware updater upload, then it usually doesn't give errors when uploading the SSL certificates...
Yes, I tried with PEM format. And I think the WiFiNINA does not have the support for it.
It would nice that if u select the board in arduino IDE it would then have all the supporting commands for the board.
I had to use Arduino 1.8.x version to get the WifININA updater function. Is it even available
on newer version of IDE...
The difficulty of WiFININA ssl
update makes the IoT 33 board quite
obsolote compared to ESP32 boards. SSL cerificates are needed all the time.
Could the IoT 33 firmware be updated so that it has native boot capabilities to update NINA-W102 chip SSL via .ino code? Official arduino board should support its own components natively?
It is getting more and more of a puzzle to
code with Arduino IDE...standalone simple coding is no more possible you need a lot of dependancies to make everything work:
-Arduino IDE 2.x.x
-Arduino IDE older version 1.x.x
-Firmware updater for a single chip in board
-Board support files
-Libraries
-Xcode (MacOS)
-JaVa
-etc...