How to Install Letsencrypt Certbot for Apache on Centos 7

Simply follow this script below:

1yum install epel-release -y
2yum install certbot python-certbot-apache mod_ssl -y
3certbot --apache

Create a cron job which renews certification once a week.

1crontab -e
10 0,12 * * * python -C 'import random; import time; time.sleep(random.random() * 3600)' && certbot renew
2# keep this line blank, it's a magic

Your domain is all set to relay on https now!
Happy networking gents! 🙂

comments powered by Disqus