Hello. I have this tutorial: https://github.com/gitpel/letsencrypt-routeros
This code: certbot certonly --preferred-challenges=dns --manual -d $DOMAIN --manual-public-ip-logging-ok
Make new certificate for me.
This code: ./opt/letsencrypt-routeros/letsencrypt-routeros.sh
Makes import into Mikrotik.
Everything works perfectly.
How to set up the scheduler correctly?
I can make scheduler with this code:
certbot certonly --preferred-challenges=dns --manual -d $DOMAIN --manual-public-ip-logging-ok --post-hook /opt/letsencrypt-routeros/letsencrypt-routeros.sh
Like every 89 days and my certificate will be generated new,
but is this true? Or should I update it? If yes, I have the following questions.
- What difference does it make if I create a new one or update an existing one?
- If I update, what will the task look like in the scheduler? Like this ?
- */12 * * * cd /root/certbot/ && ./certbot-auto renew --post-hook /opt/letsencrypt-routeros/let
Do I understand correctly that the certbot-auto renew command renews the certificate when it is more than 60 days old?
For example, I issued a certificate and now every 12 hours, will it execute my command and if the certificate is older than 60 days, will it be renewed?