Page 1 of 1

ESP32 Synchronize time for SSL Authentication

Posted: Tue Jan 01, 2019 9:18 am
by huybk213
Hi everyone.

Currently, i'm able connect ESP32 to AWS IoT using example "protocol/aws-iot/subscribe-publish" in ESP-IDF
But when i used CC3200 chip from Texas Instrument, i must connect to NTP server and synchronize time for SSL.
But in ESP32 AWS IoT example, i didn't see any function which call to NTP server?
Do I need connect to NTP server? How to set time for SSL?

Thank you so much.

Re: ESP32 Synchronize time for SSL Authentication

Posted: Fri Jan 04, 2019 2:37 pm
by chrismerck
I don't think that AWS IoT requires having an accurate local time. I believe that by using certificates generated by AWS which are still valid in real clock time, it doesn't matter what the time is on the ESP32, as long as the embedded ssl library (mbedtls) doesn't reject the certs because it thinks they are expired.