Created
May 29, 2016 16:51
-
-
Save balamaci/fdc82fd3902e9bc7d6cabc70e2400019 to your computer and use it in GitHub Desktop.
SSL Certbox nginx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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