Let's Encrypt and certbot commands


Let's Encrypt allows you to request free SSL certificates for a web site using the certbot command.

Requesting a certificate without user intervention

<bash>
certbot certonly --standalone --email me@domain.com -d www.domain.com -w /var/www/html --agree-tos --renew-by-default -n

Auto renew all installed certificates

<bash>
systemctl stop httpd
certbot renew
systemctl start httpd

Adding a sub-domain to an existing certificate

<bash>
certbot certonly --standalone -d domain.com -d dub.domain.com --expand

Requesting a wildcard certificate

<bash>
certbot -d domain.com -d *.domain.com --manual --preferred-challenges dns-01 --server https://acme-v02.api.letsencrypt.org/directory certonly


© 2007-2018 Patrick Lambert - All resources on this site are provided under the MIT License - You can contact me at: contact@dendory.net