certbot

certbot

TLDR

Obtain a new certificate via webroot authorization, but do not install it automatically

>_ sudo certbot certonly --webroot --webroot-path [path/to/webroot] --domain [subdomain.example.com]
copy

Obtain a new certificate via nginx authorization, installing the new certificate automatically

>_ sudo certbot --nginx --domain [subdomain.example.com]
copy

Obtain a new certificate via apache authorization, installing the new certificate automatically

>_ sudo certbot --apache --domain [subdomain.example.com]
copy

Renew all Let's Encrypt certificates that expire in 30 days or less (don't forget to restart any servers that use them afterwards)

>_ sudo certbot renew
copy

Simulate the obtaining of a new certificate, but don't actually save any new certificates to disk

>_ sudo certbot --webroot --webroot-path [path/to/webroot] --domain [subdomain.example.com] --dry-run
copy

Obtain an untrusted test certificate instead

>_ sudo certbot --webroot --webroot-path [path/to/webroot] --domain [subdomain.example.com] --test-cert
copy

Copied to clipboard
free 100$ digital ocean credit