From 41011f6b9c0820a38b99b3e82fc2ec646a1b6097 Mon Sep 17 00:00:00 2001 From: mathcoll Date: Sat, 13 Jul 2024 13:03:28 +0200 Subject: [PATCH] update certificate --- library.json | 2 +- library.properties | 2 +- src/t6iot.cpp | 55 +++++++++++++++++++--------------------------- 3 files changed, 25 insertions(+), 34 deletions(-) diff --git a/library.json b/library.json index 002bfba..9c27749 100644 --- a/library.json +++ b/library.json @@ -2,7 +2,7 @@ "name": "t6iot", "keywords": "iot, things, api, rest, object, connect", "description": "Library to connect t6 iot platform https://api.internetcollaboratif.info", - "version": "2.0.9", + "version": "2.0.10", "frameworks": "arduino", "examples": "examples/t6iot2/*.ino", "platforms": "*", diff --git a/library.properties b/library.properties index 5887153..44eef79 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=t6iot -version=2.0.9 +version=2.0.10 author=Mathieu Lory maintainer=Mathieu Lory sentence=Library to connect Arduino Sensors to t6iot framework SaaS or On-Premise. diff --git a/src/t6iot.cpp b/src/t6iot.cpp index 4a94e29..a693481 100644 --- a/src/t6iot.cpp +++ b/src/t6iot.cpp @@ -9,41 +9,32 @@ // nmap --script ssl-cert.nse -p 443 api.internetcollaboratif.info | grep SHA-1 // openssl s_client -connect api.internetcollaboratif.info:443 -prexit -showcerts -state -status -tlsextdebug -verify 10 -String VERSION = "2.0.9"; +String VERSION = "2.0.10"; -const char *fingerprint = "01fa 0bef 233c 30d7 9c2a 983d ce17 e9a9 178b 3546"; +const char *fingerprint = "3855 b1d0 24c4 92a5 d987 3af8 b826 0962 fc19 d6fd"; const char* root_ca PROGMEM = R"EOF( -----BEGIN CERTIFICATE----- -MIIFkjCCBHqgAwIBAgIQFB5OkcXOmecOj90NOVDnfzANBgkqhkiG9w0BAQsFADBG -MQswCQYDVQQGEwJVUzEiMCAGA1UEChMZR29vZ2xlIFRydXN0IFNlcnZpY2VzIExM -QzETMBEGA1UEAxMKR1RTIENBIDFQNTAeFw0yNDA1MDExNTQ1MTBaFw0yN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