certbot
Install
1 wget https://dl.eff.org/certbot-auto
2 sudo mv certbot-auto /usr/local/bin/certbot-auto
3 sudo chown root /usr/local/bin/certbot-auto
4 sudo chmod 0755 /usr/local/bin/certbot-auto
5 certbot-auto
Get cert to domain www.example.org (nginx)
1 /usr/local/bin/certbot-auto certonly --webroot
2
3
4
5
6
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
15
16
17 service nginx restart
certbot (last edited 2020-06-11 17:42:31 by localhost)