DEV Community

Bogdan Alexandru Militaru
Bogdan Alexandru Militaru

Posted on • Originally published at boobo94.xyz on

How I succeed to renew SSL with certbot in AMI Linux

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.

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay