-
Notifications
You must be signed in to change notification settings - Fork 13.3k
SSL validation using root cert crashes official HTTPSRequestCACertAxTLS
example
#6260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
6 tasks done
Comments
Axtls is relying on the non-32b aligned read exception handler in SDK3.0. But we had to move back to 2.2.x since pre3.0 :
So reading the last byte (to get the len) and set hash_len causes an exception. |
earlephilhower
added a commit
to earlephilhower/Arduino
that referenced
this issue
Jul 6, 2019
Fixes esp8266#6260. AXTLS' x509 decode had a uncaught byte access to PROGMEM.
earlephilhower
added a commit
that referenced
this issue
Jul 6, 2019
Confirming working ok with current master branch. Awesome quick turnaround, thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Basic Infos
Platform
Settings in IDE
Problem Description
Official example sketch
HTTPSRequestCACertAxTLS.ino
causes ESP to crash with exception onssl_verify_cert()
.Steps reproducing the issue:
git clone https://github.com/esp8266/Arduino
cd Arduino/libraries/ESP8266WiFi/examples/HTTPSRequestCACertAxTLS/
sed -i "s/your-ssid/my-ssid/" HTTPSRequestCACertAxTLS.ino
sed -i "s/your-password/my-password/" HTTPSRequestCACertAxTLS.ino
arduino HTTPSRequestCACertAxTLS.ino
Crashes with MWE as well (root certificate must be defined in
CACert.ino
):MCVE Sketch
Debug Messages
Stack trace from MWE:
Decoded:
The text was updated successfully, but these errors were encountered: