1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-30 16:24:09 +03:00

Update certs.h (#9182)

* Update certs.h

not_valid_{after,before} -> not_valid_{after,before}_utc

https://cryptography.io/en/latest/x509/reference/#cryptography.x509.Certificate.not_valid_before
> This property is deprecated and will be removed in a future version. Please switch to the timezone-aware variant not_valid_before_utc().

* fixup! Update certs.h
This commit is contained in:
Max Prokhorov
2024-07-31 03:58:18 +03:00
committed by GitHub
parent 1d6e50f7d0
commit 07feacec46
6 changed files with 132 additions and 132 deletions

View File

@ -13,6 +13,7 @@
#include <ESP8266WiFi.h>
#include <WiFiClientSecure.h>
#include "certs.h"
#ifndef STASSID
@ -23,7 +24,7 @@
const char* ssid = STASSID;
const char* password = STAPSK;
X509List cert(cert_DigiCert_Global_Root_CA);
X509List cert(cert_Sectigo_ECC_Domain_Validation_Secure_Server_CA);
void setup() {
Serial.begin(115200);
@ -62,7 +63,7 @@ void setup() {
Serial.print("Connecting to ");
Serial.println(github_host);
Serial.printf("Using certificate: %s\n", cert_DigiCert_Global_Root_CA);
Serial.printf("Using certificate: %s\n", cert_Sectigo_ECC_Domain_Validation_Secure_Server_CA);
client.setTrustAnchors(&cert);
if (!client.connect(github_host, github_port)) {