apt update && apt upgrade -y
apt-get install software-properties-common
add-apt-repository ppa:certbot/certbot
apt update && apt upgrade -y
sudo apt-get install python-certbot-apache
Add domain or subdomain name to create the certificate.
sudo certbot --apache -d smsk.biz -d www.smsk.biz
just for test renew
sudo certbot renew --dry-run
Reload apache service
/etc/init.d/apache2 reload
Add command to crontab for everyday renew.
Because you will be allowed to be renewal the day before your certificate is expire.
crontab -e
0 1 * * * sudo certbot renew --quiet
[wpedon id=”539″ align=”right”]