Lets Encrypt Setup and Auto Renew (NGINX)July 20, 2016 |
sudo su - root # NOTE: This has to be run as root. Be very careful!
cd /usr/sbin
wget https://dl.eff.org/certbot-auto
chmod a+x certbot-auto
./certbot-auto
Add the following to your nginx server configuration block vim sites-enabled/yourdomain.com
location ^~ /.well-known/ {
root /usr/share/nginx/html;
}