certbot certonly --manual --manual-public-ip-logging-ok --preferred-challenges dns-01 --server https://acme-v02.api.letsencrypt.org/directory -d *.yourdomain.com
Category: letsencrypt
Letsencrypt Force Renew
certbot renew --force-renewal -i apache -d example.com -d www.example.com
Letsencrypt (Certbot) Generate The Wildcard SSL Certificate
Now with the help of Certbot will generate wildcard certificate for our test domain erpnext.xyz
sudo certbot certonly --manual --preferred-challenges=dns --email nome@erpnext.xyz --server https://acme-v02.api.letsencrypt.org/directory --agree-tos -d *.erpnext.xyz
After executing the above command, the Certbot will share a text record to add to your DNS.
Please deploy a DNS TXT record under the name _acme-challenge.erpnext.xyz with the following value: J50GNXkhGmKCfn-0LQJcknVGtPEAQ_U_WajcLXgqWqo
Then you will receive:
Press Enter to Continue Waiting for verification... Cleaning up challenges IMPORTANT NOTES: - Congratulations! Your certificate and chain have been saved at: /etc/letsencrypt/live/erpnext.xyz-0001/fullchain.pem Your key file has been saved at: /etc/letsencrypt/live/erpnext.xyz-0001/privkey.pem Your cert will expire on 2019-08-31. To obtain a new or tweaked version of this certificate in the future, simply run certbot again. To non-interactively renew *all* of your certificates, run "certbot renew" - If you like Certbot, please consider supporting our work by: Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate Donating to EFF: https://eff.org/donate-le
done!
How do up upgrade LetsEncrypt certbot to version 0.22 which supports wildcard certificates?
Check version number
certbot --version || /path/to/certbot-auto --version
If you have already installed Certbot, you should add a parameter to apt-get install to upgrade only a specific package
sudo apt-get update sudo apt-get install --only-upgrade certbot
Letsencrypt Combining plugins
Combining plugins
Sometimes you may want to specify a combination of distinct authenticator and installer plugins. To do so, specify the authenticator plugin with --authenticator
or -a
and the installer plugin with --installer
or -i
.
For instance, you could create a certificate using the webroot plugin for authentication and the apache plugin for installation.
certbot run -a webroot -i apache -w /var/www/html -d example.com
Link: Get more info at Certbot.
Letsencrypt Automating renewal
sudo certbot renew --dry-run
Another instance of Certbot is already running (Letsencrypt)
If it is not running, check whether there are .certbot.lock files in your system.
find / -type f -name ".certbot.lock"
If there are, you can remove them:
find / -type f -name ".certbot.lock" -exec rm {} \;
Add a command to list all certificates currently installed and their domains (Letsencrypt)
sudo certbot certificates
Letsencrypt
sudo certbot -i apache -a webroot -w /var/www/example.com/public_html -d example.com -d www.example.com