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

Hi everyone,

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


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 for details.

For any questions or support, please visit Unfortunately, we can't provide support by email.

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

Submit an answer

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


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

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

Hello community.

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


Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Featured on Community

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel