https using certificates - working towards AWS S3 access #1570
-
Hi
Does the following code look ok? - it works if use https.setInsecure(); Doesn't work if I add a cert
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Take a look at the verification example https://github.com/earlephilhower/arduino-pico/tree/master/libraries/WiFi/examples/BearSSL_Validation . It goes over pretty much all the options available to you. For debugging, it looks like I skipped porting that bit from the ESP8266. I think if you change arduino-pico/libraries/WiFi/src/WiFiClientSecureBearSSL.cpp Lines 58 to 62 in 3778fbb
(i.e. remove any conditional and update to hardcode the output port) you will get the full debugging dumps. |
Beta Was this translation helpful? Give feedback.
99% of the time it's the certificate. Using OpenSSL you can dump the CAs from the AWS systems (or maybe they already provide this somewhere officially?). If there are possibly >1 root CA for AWS you'll need to use CertStore (which also has examples)...
Good luck!