How long cert from "mos aws-iot-setup" lasts?

If you are asking a question, please follow this template:

  1. My goal is: how to renew or create new aws cert on iot device running mongoose os
  2. My actions are: used “mos aws-iot-setup” to put new certs on device
  3. The result I see is: seems some certs may be expiring
  4. My expectation & question is:
    a.) How long cert from “mos aws-iot-setup” lasts? and
    b.) How to renew or create new aws cert on iot device running mongoose os?

You can get that info by examining the certificate itself on a computer.
In linux mos uses openssl to generate the key and then asks AWS to sign the certificate. You can also check the expiration date within AWS IoT console.
The ones I generated some months ago will expire on 2049…
AFAIK there is no renew option.

oh ok thanks for the info. We are finding that some devices are mysteriously randomly losing their AWS credentials