Skip to content

Instantly share code, notes, and snippets.

@savelee
Created June 3, 2016 09:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save savelee/9b107657b1c46ede0d3a46bb5f2a6bda to your computer and use it in GitHub Desktop.
Save savelee/9b107657b1c46ede0d3a46bb5f2a6bda to your computer and use it in GitHub Desktop.
Digital Ocean - Install a free SSL certificate on Ubuntu with Apache.
1. First stop your droplet, and make a snapshot.
2. Login to you droplet
ssh root@<ip>
3. Go to https://certbot.eff.org/, select the setup for example Apache on Ubuntu 14
This will give you the instructions
These are the instructions for Ubuntu 14, with Apache.
We will install Certbot:
5. wget https://dl.eff.org/certbot-auto
6. chmod a+x certbot-auto
7. ./certbot-auto --apache
The last step, is also the step that you can take to renew your certificate.
To add multiple certs to various domains on the same server run:
./certbot-auto --apache -d example.com -d www.example.com -d other.example.net
It will ask you which config file to use. Choose the 3rd option, which already contains configuration.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment