Question

How Set-Up Automatic Update of Let's Encrypt Certificate

Hi everyone,

Today one of my website get those email from Let`s Encrypt:

Hello,

Your certificate (or certificates) for the names listed below will expire in 10 days (on 18 Jul 19 17:40 +0000). Please make sure to renew your certificate before then, or visitors to your website will encounter errors.

We recommend renewing certificates automatically when they have a third of their
total lifetime left. For Let's Encrypt's current 90-day certificates, that means
renewing 30 days before expiration. See
https://letsencrypt.org/docs/integration-guide/ for details.

For any questions or support, please visit https://community.letsencrypt.org/. Unfortunately, we can't provide support by email.

Tell please how I could update it and make all those processes automated?


Submit an answer
Answer a question...

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Accepted Answer

Hi,

You can run this code on your putty to get Automatic Update of Let’s Encrypt Certificate.

sudo certbot renew --dry-run

Reference: Please refer this https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-ubuntu-16-04

In Step3 you will get an answer to your question (It’s just above the conclusion.)

In my case I received a similar email but for no real reason. The certificates were automatically renewed whatsoever. Probably there was just some delay in my certbot that caused letsencrypt to send the email to be safe. My system: Ubuntu 18.04.3, certbot 0.31.0-1

You can check status of your certificates on your server by:

sudo certbot certificates

Updating certbot might also help:

sudo apt update
sudo apt list --upgradable
sudo apt install certbot

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hello community.

Someone can help me to how can I automate Let’sEncrypt auto update on Ubuntu 20.4?

Thanks.