Created: 03/06/2017

Last Tested 03/06/2017

OS: Debian 8.7.x

NOTE: This guide is based off my TWO Apache 2 for Debian setup guides.


Download The GIT Files

cd /usr/local
git clone https://github.com/letsencrypt/letsencrypt 
cd letsencrypt/
./letsencrypt-auto

Adding well-known Override

ADD TO THE TOP OF /etc/apache2/ssl.conf

Or to the top of your apache 2 website conf file

Alias /.well-known/acme-challenge/ /var/www/.well-known/acme-challenge/
<Directory "/var/www/.well-known/acme-challenge/">
    Options None
    AllowOverride None
    ForceType text/plain
    RedirectMatch 404 "^(?!/\.well-known/acme-challenge/[\w-]{43}$)"
</Directory>

Getting The SSL Certs

Two edits need to happen here:

  1. Email Address
  2. Domain Name
/root/.local/share/letsencrypt/bin/letsencrypt certonly --webroot -w /var/www --renew-by-default --email \ [email protected] --text --agree-tos --agree-dev-preview -d \ domain.com