I have installed my let’s encrypt on Amazon linux ami ec2 instance. I have did the sudo crontab -e as such.
0 3 * * * /usr/local/bin/certbot-auto renew
30 3 * * * service httpd restart
However, the certificate failed to renew. Can anyone help to explain why? I am not very familiar with the commands but I remember I follow some articles to do the auto renewal part.
Is there somewhere that I can find the log file of the error for renewal?
Due to this, as it expires today, I tried manually like sudo /usr/local/bin/certbot-auto renew and it works though there is some error but somehow it automatically renew successfully.
When i checked sudo openssl x509 -noout -dates -in /etc/letsencrypt/live/learningforkeeps.com.sg/cert.pem the expiry date has changed to February next year. So it works.
Appreciate some help and explanation.