How To Auto Renew Let’s Encrypt SSL Certificates

Auto Renew Let’s Encrypt SSL Certificates

In this tutorial we will show you how to Auto Renew Let’s Encrypt SSL Certificates on your Linux server. For those of you who didn’t know, Let’s Encrypt is a free open certificate authority (CA) that provides free certificates for websites and other services. The service, which is backed by the Electronic Frontier Foundation, Mozilla, Cisco Systems, and Akamai. Unfortunately, LetsEncrypt.org certificates currently have a 3 month lifetime. This means you’ll need to renew your certificate quarterly for now.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges.

Let’s encrypt SSL certificates will get expired after 90 Days of installation and you must renew it before it get expired. If you have installed certificates using certbot then it must have already created cronjob to auto renew certificates. For custom installation you can create similar cronjob too. Lets learn how certbot’s auto renew job works.

Auto Renew Let’s Encrypt SSL Certificates

Step 1. Certbot Renew Command.

Certbot comes with a script to renew existing certificates. You can test renewal script with a single dry run like below:

If above test succeeds then create a cron job that will run this script for configured intervals.

Step 2. Certbot Auto Renew Cron Job.

When you install certificates using certbot it automatically creates cron job to renew certificates. You can check this cron job depending on your operating system. For example in Debian certbot auto renew cronjob can be found at /etc/cron.d/certbot:

Congratulation’s! You have successfully renew Let’s Encrypt Certificates. Thanks for using this tutorial for auto renew Let’s Encrypt SSL Certificates on Linux system. For additional help or useful information, we recommend you to check the official Let’s Encrypt website.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get a best deal!