Skip to content

Commit a882d2c

Browse files
arduinopennam
arduino
authored andcommitted
UNOWiFiR4: force trusted CA from library
1 parent a32d473 commit a882d2c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/tls/utility/TLSClientMqtt.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ void TLSClientMqtt::begin(ConnectionHandler & connection) {
5959
* https://github.com/arduino/uno-r4-wifi-usb-bridge/blob/f09ca94fdcab845b8368d4435fdac9f6999d21d2/certificates/certificates.pem#L852
6060
*/
6161
(void)connection;
62+
/* Temporary force CACert to add new CA without rebuilding firmware */
63+
setCACert(AIoTSSCert);
6264
#elif defined(ARDUINO_ARCH_ESP32)
6365
#if (ESP_ARDUINO_VERSION < ESP_ARDUINO_VERSION_VAL(3, 0, 4))
6466
setCACertBundle(x509_crt_bundle);

0 commit comments

Comments
 (0)