Question

How do I update the SSL certificate when it's due to expire?

Connected Tutorial
This question is a follow-up to this tutorial:

Using the tutorial above for Cloudflare, how do I go about updating the SSL certificate before it expires? Is there a way to set it up to automatically renew 30 days prior to expiration?

Show comments

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.

KFSys
Site Moderator
Site Moderator badge
June 22, 2021
Accepted Answer

Hi @jpvonoy,

I recommend using Certbot. Certbot will install a free Let’s Encrypt certificate and will actually help you auto-update it. DigitalOcean have a pretty good tutorial that will help you do exactly that :

https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-20-04

Alternatively, if you want to use Cloudflare’s SSLs you can check the following article: How-do-I-add-SSL-to-my-site-cloudflare

You can install certbot and use it to automatically renew the SSL certificate. certbot official website

Try DigitalOcean for free

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

Sign up

card icon
Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Sign up
card icon
Hollie's Hub for Good

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

Learn more
card icon
Become a contributor

You get paid; we donate to tech nonprofits.

Learn more
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