So I tried with sudo apt-get install letsencrypt
Installed OK (no errors in install)
But then same issues with trying to install certificate:
~$ ./letsencrypt-auto
-bash: ./letsencrypt-auto: No such file or directory
~$ letsencrypt auto
usage:
letsencrypt [SUBCOMMAND] [options] [-d domain] [-d domain] …
The Let’s Encrypt agent can obtain and install HTTPS/TLS/SSL certificates. By
default, it will attempt to use a webserver both for obtaining and installing
the cert. Major SUBCOMMANDS are:
(default) run Obtain & install a cert in your current webserver
certonly Obtain cert, but do not install it (aka “auth”)
install Install a previously obtained cert in a server
renew Renew previously obtained certs that are near expiry
revoke Revoke a previously obtained certificate
rollback Rollback server configuration changes made during install
config_changes Show changes made to server config during installation
plugins Display information about installed plugins
letsencrypt: error: unrecognized arguments: auto
~$ letsencrypt run
An unexpected error occurred:
IOError: [Errno 13] Permission denied: '/var/log/letsencrypt/letsencrypt.log’
Please see the logfile ‘letsencrypt.log’ for more details.
~$ sudo letsencrypt run
No installers seem to be present and working on your system; fix that or try running letsencrypt with the “certonly” command
~$ sudo letsencrypt certonly -d mydomain.com -d www.mydomain.com
The program apache2 (process ID 15109) is already listening on TCP
port 80. This will prevent us from binding to that port. Please stop
the apache2 program temporarily and then try again.
But if I stop apache, then it can’t find the server to authenticate.
Failed authorization procedure. www.mydomain.com (tls-sni-01): urn:acme:error:connection :: The server could not connect to the client to verify the domain :: Failed to connect to host for DVSNI challenge, mydomain.com (tls-sni-01): urn:acme:error:connection :: The server could not connect to the client to verify the domain :: Failed to connect to host for DVSNI challenge
~$ sudo letsencrypt --apache certonly -d mydomain.com -d www.mydomain.com
The requested apache plugin does not appear to be installed
~$ sudo letsencrypt certonly --standalone -d mydomain.com -d www.mydomain.com
The program apache2 (process ID 15109) is already listening on TCP
port 80. This will prevent us from binding to that port. Please stop
the apache2 program temporarily and then try again.
Again, if I stop apache, then it can’t find the server to authenticate.
Same issues I had trying to install on Ubuntu 14.04
Some combination I finally got to work when I did this a month ago on 14.04, so it would at least give me the certificates, and I installed manually in the vhost conf file.
I’m not having any luck this time with Ubuntu 16.04, nothing seems to work now.
It’s very frustrating when the directions on the Letsencrypt site don’t match with the apt-get install version, and if you try and search around, there are dozens of variations on how to do this, and nothing seems to work.
I understand this is new, and everyone has different configurations, but it shouldn’t be this difficult.
I’m open to suggestions…
Otherwise I’ll try the git approach later, and see if I can get some combination to work that way.
Thanks!