Hi All,
I am using TI RTOS and tm4c129encpdt with CCS with Ethernet.
I am using httpcli library for MQTT and HTTPS
My MQTT is based on AWS IoT. There I am using the certificate/key pair whose date is -
For MQTT certificate used in the device (created from AWS IoT)
Create date
September 12, 2020, 01:04:42 (UTC+0530)
Effective date
September 12, 2020, 01:02:42 (UTC+0530)
Expiration date
January 01, 2050, 05:29:59 (UTC+0530)
FOR HTTPS certificate used in the device
Expiration date is 20Dec. 2021
When I am setting the date as 1600422026 (18sep, 2020),
the MQTT works fine and HTTPS works fine too.
But when I set the date to 1631946773 (18Sept, 2021),
HTTPS works fine but MQTT fails and gives error ASN_AFTER_DATE_E (-151) (checked from the wolfssl logs).
Why is it so? For MQTT and HTTPS, I have the date which is lying between the activation date and expiration date. But if I am setting the date to some larger, mqtt getting failed and https is working. Why is it so?
Thanks