Connecting to mosquitto mqtt through TLS/SSL from arduino uno wi-fi REV2

Hello, first of all I'd like to say that i'm fairly new to SSL and I've only used it a few times. Just like the title says I'm trying to connect to my mosquitto broker which I setup with TLS using this guide https://mosquitto.org/man/mosquitto-tls-7.html, it works fine with other connections such as from node-red since I was able to generate client certificates and upload them on node-red. But I'm having trouble understeanding how to do so on the arduino uno wi-fi rev2.
This is the connection setup, the rest is omitted as its a classic mqtt connection that can be easily be found on the ArduinoMqttClient examples (and it worked fine without the ssl)


#include <WiFiNINA.h>
#include <ArduinoMqttClient.h>
WiFiSSLClient wifiClient;
MqttClient mqttClient(wifiClient);

On the ArduinoMqttClient github page, I found this https://github.com/arduino-libraries/ArduinoMqttClient/commit/ff90ddb2ff2244a0f77ec4abe91fd6fda97deb32, on line 29 it says "Change broker value to a server with a known SSL/TLS root certificate flashed in the WiFi module." But how do I do that? I already tried using the firmware update tool on the arduino IDE but that only lets me add links from known servers, and not upload custom certificates.

Edit: I found this tool called arduino firmware uploader that allows custom certificates upload.

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