Skip to content

Commit b433cb6

Browse files
committed
fixup! Update certs.h
1 parent 4be8423 commit b433cb6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

libraries/ESP8266WiFi/examples/HTTPSRequest/HTTPSRequest.ino

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
#include <ESP8266WiFi.h>
1515
#include <WiFiClientSecure.h>
16+
1617
#include "certs.h"
1718

1819
#ifndef STASSID
@@ -23,7 +24,7 @@
2324
const char* ssid = STASSID;
2425
const char* password = STAPSK;
2526

26-
X509List cert(cert_DigiCert_Global_Root_CA);
27+
X509List cert(cert_Sectigo_ECC_Domain_Validation_Secure_Server_CA);
2728

2829
void setup() {
2930
Serial.begin(115200);
@@ -62,7 +63,7 @@ void setup() {
6263
Serial.print("Connecting to ");
6364
Serial.println(github_host);
6465

65-
Serial.printf("Using certificate: %s\n", cert_DigiCert_Global_Root_CA);
66+
Serial.printf("Using certificate: %s\n", cert_Sectigo_ECC_Domain_Validation_Secure_Server_CA);
6667
client.setTrustAnchors(&cert);
6768

6869
if (!client.connect(github_host, github_port)) {

0 commit comments

Comments
 (0)