Here at the Clearleft towers we use DigitalOcean and our servers run Ubuntu 14.04 and Nginx 1.8.0.
At the moment, Letsencrypt has an auto installer for Apache only. I actually have no idea what that does, as the other option is to create the certificate files and link to them in your site’s
conf file manually, which is all I’ve ever done anyway. I don’t think I’d want anything doing that step for me. But, I digress.
I’m assuming that you’ve installed
nginx, and both as packages with
You may also need to use the
sudo command if you are not logged in as root.
There is no letsencrypt package for Ubuntu yet, so we install via
Stop nginx. I had issues when I didn’t, so I recommend it.
Generate the certificates. This command skips the horrific installer interface. Add
-d for each domain name the site uses. Usually it’s just the one domain name as we, by default, redirect from www to non-www anyway.
This puts the certificates, and other related files, in
The two we need are
In the site’s
.conf file, in the
server directive, add the following:
This will allow the site to be accessed from both
https. To make the site
https only, you need a preceding
server directive to redirect all domain names to
Then the second
server needs only:
Start that server back up