Skip to content

Instantly share code, notes, and snippets.

@balamaci
Created May 29, 2016 16:51
Show Gist options
  • Save balamaci/fdc82fd3902e9bc7d6cabc70e2400019 to your computer and use it in GitHub Desktop.
Save balamaci/fdc82fd3902e9bc7d6cabc70e2400019 to your computer and use it in GitHub Desktop.
SSL Certbox nginx
nginx reads the config from /etc/nginx/sites-enabled/
usually there are just links from /etc/nginx/sites-available.
when generating certificates with certbot, choose 'webroot' option if there is a directory that is served.
Cerbot will place the test files there - and will ask the disk location where the exposed dir is located like '/var/www'
certbot generates certificates in /etc/letsencrypt/live/balamaci.eu/
and you need to reference them in nginx site config:
ssl_certificate /etc/letsencrypt/live/balamaci.eu/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/balamaci.eu/privkey.pem;
.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment