Replies: 1 comment 4 replies
-
Certificate checks require time to be set Arduino/libraries/ESP8266WiFi/examples/HTTPSRequest/HTTPSRequest.ino Lines 44 to 45 in 69f8cd6 Also, you need to tweak some build settings At the top of the certs.h you can see the command that generated it Arduino/libraries/ESP8266WiFi/examples/HTTPSRequest/certs.h Lines 4 to 5 in 69f8cd6 The script is intended for the Core examples, but you might find it useful. Notice that the certificate you want is the CA one https://github.com/esp8266/Arduino/blob/master/tools/cert.py And it is working as-is, you should be able to see output from the Github API if you run it
|
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am so sorry to writing this, Please forgive me , However who change the TTL connection to BearSSL . While doing this did you check how much person effect this change ? I have used platformIO once upgraded library of esp8266 crashed. And after I have check blow link
https://github.com/esp8266/Arduino/blob/69f8cd693447404be8696527e94f3665d6318b8e/libraries/ESP8266WiFi/examples/HTTPSRequest/HTTPSRequest.ino
There is no openly explanation on web. how could I extract cert files from webpage (previously I have used https://www.youtube.com/watch?v=Wm1xKj4bKsY&t=781s
Andreas Spiess perfectly explained )
what I have done and crashed...
downloaded openssl-0.9.8k_X64.zip from below link
https://code.google.com/archive/p/openssl-for-windows/downloads
and for example open https://www.webpage.com to extracted "Base-64 encoded x.509" type *.cer file
and open cmd as administration and write below
C::\Users\cn\Desktop\openssl-0.9.8k_X64\bin>openssl x509 -pubkey -noout -in extractedFromWebPage.cer
C:\Users\cn\Desktop\openssl-0.9.8k_X64\bin>openssl x509 -fingerprint -in extractedFromWebPage.cer
after this I have prepared as much totally same as https://github.com/esp8266/Arduino/blob/69f8cd693447404be8696527e94f3665d6318b8e/libraries/ESP8266WiFi/examples/HTTPSRequest/certs.h
and I have prepared totally same
https://github.com/esp8266/Arduino/blob/69f8cd693447404be8696527e94f3665d6318b8e/libraries/ESP8266WiFi/examples/HTTPSRequest/HTTPSRequest.ino
After all things done and one week works to solve the issue connection failed
at below
if (!client.connect(host, 443)) {
Serial.println("Connection failed");
return;
}
Please, please , how could I get lower version which helps to use client.setCACert_P(caCert, caCertLen);
If there is no way to get old version , please guide me to use new one.
Best regards.
Beta Was this translation helpful? Give feedback.
All reactions