HostOnNet Blog

Install LetsEncrypt on Linux Server

LetsEncrypt is a Free SSL provider.

Install LetsEncrypt

To install LetsEncrypt, run

cd /usr/local/bin
chmod a+x /usr/local/bin/certbot-auto

Generate SSL certificate

To generate SSL for a web site, run

certbot-auto --apache -d YOUR-DOMAIN.EXT -d www.YOUR-DOMAIN.EXT

Auto Renew SSL with Cronjob

LetsEncrypt SSL certificate expire after 90 days of issuing. To renew it, run following cronjob.

crontab -e


30 2 * * 1 /usr/local/bin/certbot-auto renew >> /var/log/le-renew.log

Posted in Security