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:
@ -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)) {
|
||||
|
Reference in New Issue
Block a user