Created: 03/06/2017

Last Tested 11/21/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
cd /usr/local/letsencrypt

./certbot-auto certonly --standalone --email [email protected] -d example.org -d 1.example.org