Skip to content

SSL / Let's Encrypt#

Obtain SSL certificate#

certbot --nginx -d domain.com

Obtain SSL for multiple domains#

certbot --nginx -d domain.com -d www.domain.com

Renew certificate#

certbot renew

Test certificate renewal#

certbot renew --dry-run

Check certificate status#

certbot certificates

Revoke certificate#

certbot revoke --cert-path /etc/letsencrypt/live/domain.com/cert.pem

Check DNS resolution#

dig +short domain.com A

Check DNS with nslookup#

nslookup domain.com

Ping domain#

ping -c 2 domain.com