Images?q=tbn:and9gcsg7atn5fkneqy1mwa3ac94gy oakjepuv5k5tia2g9m8mb14hnia

Adding a SSL cert to


February 16, 2018 How I used to add a *free* SSL certificate to my server for multiple domains.

Get the SSL cert

Installation instructions for untutrusty-nginx

After installing all necessary packages:

sudo certbot --nginx certonly

Choose which domain name(s) you wish to obtain a certificate for.

LetsEncrypt puts the certificates here: /etc/letsencrypt/live/your-site/*

Create symlinks to the certificate and private key files:

ln -s /etc/letsencrypt/live/mycoolsite/privkey.pem /etc/ssl/private/mycoolsite-privkey.pem

ln -s /etc/letsencrypt/live/mycoolsite/fullchain.pem /etc/ssl/certs/mycoolsite-crt.pem

Configure Nginx

Update your Nginx configuration for the domain you wish to 'secure'. Can copy paste this code from the server block listening on port 80 and edit as follows (yours might look a little different, but the important stuff is prefixed ssl_*):

Just restart your Nginx and viola, mycoolsite is now using https.