Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new version with updated SSL #9

Merged
merged 1 commit into from
Oct 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

**/settings.lua
/src\keywords.txt
.vscode/c_cpp_properties.json
5 changes: 5 additions & 0 deletions .vscode/arduino.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"configuration": "xtal=80,vt=flash,exception=disabled,stacksmash=disabled,ssl=all,mmu=3232,non32xfer=fast,eesz=4M2M,led=2,ip=lm2f,dbg=Disabled,lvl=None____,wipe=none,baud=115200",
"board": "esp8266:esp8266:nodemcuv2",
"sketch": "examples/t6iot2/t6iot2_basic/t6iot2_basic.ino"
}
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.10",
"version": "2.0.11",
"frameworks": "arduino",
"examples": "examples/t6iot2/*.ino",
"platforms": "*",
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=t6iot
version=2.0.10
version=2.0.11
author=Mathieu Lory <mathieu@internetcollaboratif.info>
maintainer=Mathieu Lory <mathieu@internetcollaboratif.info>
sentence=Library to connect Arduino Sensors to t6iot framework SaaS or On-Premise.
Expand Down
44 changes: 21 additions & 23 deletions src/t6iot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,32 +9,30 @@
// 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.10";
String VERSION = "2.0.11";

const char *fingerprint = "3855 b1d0 24c4 92a5 d987 3af8 b826 0962 fc19 d6fd";
const char *fingerprint = "84c9 4e18 3389 fd70 1359 cf40 f1ea 5e9c 6b0c c7ad";
const char* root_ca PROGMEM = R"EOF(
-----BEGIN CERTIFICATE-----
MIIDzTCCA3SgAwIBAgIRALk0TQuaK+NgDVKAzcdovIUwCgYIKoZIzj0EAwIwOzEL
MAkGA1UEBhMCVVMxHjAcBgNVBAoTFUdvb2dsZSBUcnVzdCBTZXJ2aWNlczEMMAoG
A1UEAxMDV0UxMB4XDTI0MDYyOTE3NTAzOFoXDTI0MDkyNzE3NTAzN1owJDEiMCAG
A1UEAxMZaW50ZXJuZXRjb2xsYWJvcmF0aWYuaW5mbzBZMBMGByqGSM49AgEGCCqG
SM49AwEHA0IABNkTHaE7b3Gbi2qag+99n8bVQaqSpDjc9bYQqyUOns1FA7daqHU9
brpBi7KUrqTF5GEy2aFRJ4DsAV551Amcs8yjggJuMIICajAOBgNVHQ8BAf8EBAMC
B4AwEwYDVR0lBAwwCgYIKwYBBQUHAwEwDAYDVR0TAQH/BAIwADAdBgNVHQ4EFgQU
+VigOkrwWoAOcZpbBYvVSibhD54wHwYDVR0jBBgwFoAUkHeSNWfE/6jMqeZ72YB5
e8yT+TgwXgYIKwYBBQUHAQEEUjBQMCcGCCsGAQUFBzABhhtodHRwOi8vby5wa2ku
Z29vZy9zL3dlMS91VFEwJQYIKwYBBQUHMAKGGWh0dHA6Ly9pLnBraS5nb29nL3dl
MS5jcnQwQQYDVR0RBDowOIIZaW50ZXJuZXRjb2xsYWJvcmF0aWYuaW5mb4IbKi5p
bnRlcm5ldGNvbGxhYm9yYXRpZi5pbmZvMBMGA1UdIAQMMAowCAYGZ4EMAQIBMDYG
A1UdHwQvMC0wK6ApoCeGJWh0dHA6Ly9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