Certbot Quickguide

Creating Certificate

certbot certonly  -w /var/www/example/ -d www.example.com -d example.com -w /var/www/other -d other.example.net -d another.other.example.net

Renewing Certificates

Certificates generated using certbot last 90 days. Following command attempts to renew all certificates managed by certbot.

certbot renew

Following command does a test renewal (ie. doesn’t keep new certificates and old one still works).

certbot renew –dry-run

Revoking Certificate

certbot revoke -d abc.example.com –cert-path /etc/letsencrypt/live/example.com/cert.pem