ESP32 Synchronize time for SSL Authentication

huybk213
Posts: 13
Joined: Tue Jan 01, 2019 9:13 am

ESP32 Synchronize time for SSL Authentication

Postby huybk213 » Tue Jan 01, 2019 9:18 am

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.

chrismerck
Posts: 76
Joined: Tue May 29, 2018 8:00 pm

Re: ESP32 Synchronize time for SSL Authentication

Postby chrismerck » Fri Jan 04, 2019 2:37 pm

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.

Who is online

Users browsing this forum: No registered users and 126 guests