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.

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

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.

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