Secure thanks to Let’s Encrypt (Free SSL Certificates)

Let's encrypt logo

I want to thank Let’s Encrypt and their sponsors for providing a free solution for securing the web!

If you want to try it yourself. Check it out here : https://letsencrypt.org/

How to secure your debian LAMP website :
(If you have no git installed)

sudo apt-get install git

Download the letsencrypt Client

sudo git clone https://github.com/letsencrypt/letsencrypt /opt/letsencrypt

Go To the letsencrypt directory

cd /opt/letsencrypt

Encrypt your domain

./letsencrypt-auto --apache -d www.yourwebsite.com

Follow the instructions and finaly test your installation here

https://www.ssllabs.com/ssltest/analyze.html?d=www.yourwebsite.com&latest

Oh, and don’t forget. Your certificates are valid for 3 months (90 days) unless you renew them. To automate this renewal process you can add the letsencrypt-auto renew command to your crontab.

If you check every 60 days you will never run out of valid certificates.
To run the script manualy (from the /opt/letsencrypt directory)

./letsencrypt-auto renew

Add to crontab :

sudo crontab -e

and add this rule

30 2 * * 1 /opt/letsencrypt/letsencrypt-auto renew >> /var/log/le-renew.log

Logs for the renewal will be stored at /var/log/le-renew.log