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

Posted June 22, 2021 516 views
NginxSecurityDNSUbuntu 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?

1 comment
  • Show comment This comment has been marked as resolved by jpvonoy.

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.

Submit an Answer
2 answers

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 :

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

by Brian Boucheron
Let's Encrypt is a Certificate Authority (CA) that provides an easy way to obtain and install free TLS/SSL certificates, thereby enabling encrypted HTTPS on web servers. It simplifies the process by providing a software client, Certbot, that attempts to automate most (if not all) of the required steps. In this tutorial, you will use Certbot to obtain a free SSL certificate for Nginx on Ubuntu 20.04, and set up your certificate to renew automatically.

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