⇤ ← Revision 1 as of 2020-06-11 17:42:10
Size: 1136
Comment:
|
Size: 1152
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 13: | Line 13: |
{{{ | {{{#!highlight bash |
certbot
Install
Get cert to domain www.example.org (nginx)
1 /usr/local/bin/certbot-auto certonly --webroot
2 #Please enter in your domain name(s) (comma and/or space separated) (Enter 'c'to cancel): www.example.org
3 # - Congratulations! Your certificate and chain have been saved at:
4 # /etc/letsencrypt/live/www.example.org/fullchain.pem
5 # Your key file has been saved at:
6 # /etc/letsencrypt/live/www.example.org/privkey.pem
7 cd /etc/letsencrypt/live/www.example.org/
8 cat cert.pem > www_ca_bundle.crt
9 echo "" >> www_ca_bundle.crt
10 cat chain.pem >> www_ca_bundle.crt
11 cp privkey.pem /etc/ssl/private/www_private.key
12 cp www_ca_bundle.crt /etc/ssl/certs/www_ca_bundle.crt
13 nano /etc/nginx/sites-enabled/www.example.org
14 # ssl_certificate /etc/ssl/certs/www_ca_bundle.crt;
15 # ssl_certificate_key /etc/ssl/private/www_private.key;
16 # change paths ...
17 service nginx restart