Secure Apache with Let's Encrypt on Ubuntu 16.04

Install Let's Encrypt Client

$ sudo apt-get -s update
$ sudo apt-get install python-letsencrypt-apache

Set up the SSL Certificate

# as the certificate domain for the single domain
# if there is more than one domain, use the following command
# sudo letsencrypt --apache -d -d
$ sudo letsencrypt --apache -d
# after installation certificate, use the website to test

Set up Auto Renewal

  • renew once
$ sudo letsencrypt renew
  • renew on scheduling by crontab
# book renewal
$ sudo vim /etc/crontab

# add the following command
30 2    * * 1   root    /usr/bin/letsencrypt renew >> /var/log/le-renew.log

Set up Manual Renewal

  • manually setup the renewal
$ ./certbot-auto certonly --manual -d

results matching ""

    No results matching ""