1. Install mod_ssl and python

[html]
yum -y install mod_ssl python26-virtualenv
[/html]

2. Change into /opt and clone letsencypt

[html]
cd /opt
[/html]

[html]
git clone https://github.com/certbot/certbot letsencrypt
[/html]

3. Run letsencrypt

[html]
/opt/letsencrypt/letsencrypt-auto –debug
[/html]

Select relevant options when prompted.

4. Setup auto-renew

Auto-renew certificates every Sunday at 6pm:

[html]
crontab -e
# Renew Let’s Encrypt certificates at 6pm every Sunday
0 18 * * 0 root (/opt/letsencrypt/certbot-auto renew && service httpd restart)
[/html]

Written by Matt Cooper
Hi, I'm Matt Cooper. I started this blog to pretty much act as a brain dump area for things I learn from day to day. You can contact me at: matt@matthewc424.sg-host.com.