Skip to content

Commit adb267c

Browse files
committed
docs(ssl): Update TLS/SSL certificate fingerprint instructions
1 parent e38bc30 commit adb267c

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/AdafruitIO_Definitions.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,10 @@ class AdafruitIOGroupCallback {
115115
#define AIO_ERROR_TOPIC "/errors" ///< Adafruit IO Error MQTT Topic
116116
#define AIO_THROTTLE_TOPIC "/throttle" ///< Adafruit IO Throttle MQTT Topic
117117

118-
// latest fingerprint can be generated with
118+
// io.adafruit.com TLS/SSL certificate changes every 6months, and pinning
119+
// certificates is no longer recommended. Migrate to a larger MCU like esp32
120+
// which can accomodate root certificates and verify chains of trust. For
121+
// older devices like esp8266 you can generate the latest fingerprint with:
119122
// echo | openssl s_client -connect io.adafruit.com:443 | openssl x509
120123
// -fingerprint -noout
121124
#define AIO_SSL_FINGERPRINT \

src/wifi/AdafruitIO_ESP8266.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,13 @@
2525
/* NOTE - Projects that require "Secure MQTT" (TLS/SSL) also require a new
2626
* SSL certificate every year. If adding Secure MQTT to your ESP8266 project is
2727
* important - please switch to using the modern ESP32 (and related models)
28-
* instead of the ESP8266 to avoid updating the SSL fingerprint every year.
28+
* instead of the ESP8266 to avoid updating the SSL fingerprint every 6months.
2929
*
3030
* If you've read through this and still want to use "Secure MQTT" with your
3131
* ESP8266 project, we've left the "WiFiClientSecure" lines commented out. To
3232
* use them, uncomment the commented out lines within `AdafruitIO_ESP8266.h` and
33-
* `AdafruitIO_ESP8266.cpp` and recompile the library.
33+
* `AdafruitIO_ESP8266.cpp`, update fingerprint in `AdafruitIO_Definitions.h`,
34+
* and then recompile the library.
3435
*/
3536
// #include "WiFiClientSecure.h"
3637

0 commit comments

Comments
 (0)