This is a subpost of the larger post Updated Comprehensive VPS Setup Documentation.
LetsEncypt allows us to setup free SSL certificates for our virtualhosts.
First, make sure you are in your root home directory “/~” and then clone the LetsEncrypt git repository;
git clone https://github.com/letsencrypt/letsencrypt
Enter the directory cd letsencrypt
And run the automatic script ./letsencrypt-auto --apache
It will ask which virtual hosts you want to install certificates for, and then it does all the work for you!
When you need to renew these, check out my tutorial Renewing Free LetsEncrypt SSL Certificates.