Install Let’s Encrypt to Create SSL Certificates

Update and Install the required programs

sudo apt-get update && sudo apt-get install certbot python-certbot-apache

Get an SSL certificate

 sudo certbot --apache -d example.com -d www.example.coor

Auto Renewal

As certificates expire after 90 days, we need to check if auto renew is working correctly, Certbot will automatically run twice a day and renew any certificate that is within 30 days of expiration.

To check the auto renew process is working correctly you can run the following command.

sudo certbot renew --dry-run

Leave a Comment