wiki:certbot_download_certificates_only
Table of Contents
Certbot download certificates only
Install certbot
Get certificate
Append –dry-run to below commands to test.
certbot-auto certonly --webroot -w /path/to/webroot/ -d sub.example.com
Concatenate the newly renewed certificate and private key (lighttpd example):
cat /etc/letsencrypt/live/sub.example.com/privkey.pem /etc/letsencrypt/live/sub.example.com/cert.pem > /etc/lighttpd/qa.pem
Reload webserver.
Expand certificate
For expanding the certificate to new subdomains just add the new domain to above command i.e.:
certbot-auto certonly --webroot -w /var/www/example.com/web/webroot --expand -d example.com -d www.example.com
Tested on
- Debian 8 Jessie
- Debian 9 Stretch
See also
References
wiki/certbot_download_certificates_only.txt · Last modified: 2022/09/19 23:42 by antisa