esp8266 / Arduino

ESP8266 core for Arduino
GNU Lesser General Public License v2.1
16.09k stars 13.33k forks source link

Example BasicHttpsClient SSL cert has expired ? #9129

Closed mats-nk closed 3 months ago

mats-nk commented 7 months ago

Basic Infos

Platform

Settings in IDE

Problem Description

Unmodified example : BasicHttpsClient.ino

In /libraries/ESP8266HTTPClient/examples/BasicHttpsClient/

Of the two methods :

client->setFingerprint(fingerprint_sni_cloudflaressl_com);

and

client->setInsecure();

The later setInsecure(); works and from the SSL cert file cert.h info:

// not valid before: 2020-01-27 12:48:08
// not valid after:  2024-12-31 23:59:59

I assume that the certificate has expired.