Example of SSL/TLS using a rootCA #78
pakalvoltan
started this conversation in
General
Replies: 1 comment 16 replies
-
This option will include in the specific platform example updates. Because the certificate verification in other support platform e.g. SAMD21 using WiFiNINA firmware is different because arduino team manage the cert stores differently, the options in the session config for certificate data verification are for ESP8266 and ESP32 only. |
Beta Was this translation helpful? Give feedback.
16 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Build tool used:
Board used (ESP32/ESP8266/Arudino):
Other Libraries That are used:
Description of problem:
I have successfully used this library to send emails using gmail and SSL/TLS using port 587, but without setting the option to verify the certificate. However for security reasons it would be good to verify the root CA. I have tried in several ways to use it, and no connection. I always get in the debug log in my serial console,the following:
It would be great to include an example on how to use the
session.certificate.verify = true;
how to specify the root certificate and how to specify the other necessary options to be set.
Thank you!
Share code snippet to reproduce the issue:
PASTE .cpp / .ino code here
Additional information and things you've tried:
/* Set the session config */
session.server.host_name = SMTP_HOST; // This is "smtp.gmail.com"
session.server.port = SMTP_PORT; // This is 587
session.login.email = AUTHOR_EMAIL;
session.login.password = AUTHOR_PASSWORD;
session.login.user_domain = MY_DOMAIN; // here the real domain being used
session.certificate.verify = true;
session.certificate.cert_data = GSR2_PEM; // This is a pem of the GlobalSign R2 CA PEM
Beta Was this translation helpful? Give feedback.
All reactions