Report this

What is the reason for this report?

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

Posted on June 22, 2021

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

How To Host a Website Using Cloudflare and Nginx on Ubuntu 20.04

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?



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!

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.
0

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.