HostOnNet Blog


Install LetsEncrypt on Linux Server

LetsEncrypt is a Free SSL provider.

Install LetsEncrypt

To install LetsEncrypt, run

cd /usr/local/sbin
wget https://dl.eff.org/certbot-auto
chmod a+x /usr/local/sbin/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

Add

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

Posted in Security