DEV Community

loading...

How I succeed to renew SSL with certbot in AMI Linux

Bogdan Alexandru Militaru
Get whatever you want from me [here](https://boobo94.github.io/)
Originally published at boobo94.xyz on ・1 min read

Hello fellas. Last week I had some major issues with our SSL which wasn’t renewed. At first look, all was in place. I use Let’s encrypt certificate and Certbot tool. As the title mention, it’s all happening on Amazon AMI Linux.

The problem was that the cronjob was not executed. I configured the script initially using sudo:

$ sudo crontab -e
Enter fullscreen mode Exit fullscreen mode

In order to fix the problem, I had to use crontab -e and run the script as root, as you can see below:

Run

$ crontab -e
Enter fullscreen mode Exit fullscreen mode

And at the end of file add the following:


0 0 * * * sudo -u root /usr/bin/certbot renew --quiet
Enter fullscreen mode Exit fullscreen mode

I hope this article was helpful. If you consider that please give it a share and take a look at my other articles.

The post How I succeed to renew SSL with certbot in AMI Linux appeared first on boobo94.

Discussion (0)

Forem Open with the Forem app