Nginx with Let's Encrypt on Ubuntu 16.04


#1

RE: https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-16-04

I had been successfully using the --standalone method for let’s encrypt but it quit working after I did a sudo git pull to get the latest version of let’s encrypt.

I followed the tutorial referenced above. When I entered the commands:

cd /opt/letsencrypt

then:

./letsencrypt-auto certonly -a webroot --webroot-path=/var/www/mysite.com/html -d mysite.com -d www.mysite.com

I got:

-bash: ./letsencrypt-auto: No such file or directory

I can see that the letsencrypt files are in place. What are the (new?) correct commands?

ubuntu 16.04
nginx 1.10.0


#2

I think it should have worked; what do you see when you run ls /opt/letsencrypt?


#3

ls /opt/letsencrypt
acme letsencrypt-nginx
certbot letshelp-certbot
certbot-apache letshelp-letsencrypt
certbot-auto LICENSE.txt
certbot-compatibility-test linter_plugin.py
certbot-nginx MANIFEST.in
CHANGES.rst pep8.travis.sh
CONTRIBUTING.md README.rst
docker-compose.yml readthedocs.org.requirements.txt
Dockerfile setup.cfg
Dockerfile-dev setup.py
docs tests
examples tools
letsencrypt tox.cover.sh
letsencrypt-apache tox.ini
letsencrypt-auto Vagrantfile
letsencrypt-auto-source


#4

Is it possible that there was a typo in your commands or that you didn’t enter them in the same session or something?


#5

Hello Schoen,

I’ll try to re-create the issue and keep detailed notes. Thanks for your attention!