certbot Command Examples

The Let's Encrypt Agent for automatically obtaining and renewing TLS certificates. Successor to letsencrypt. More information: https://eff-certbot.readthedocs.io/en/latest/using.html.

sudo certbot certonly --webroot {{[-w|--webroot-path]}} {{path/to/webroot}} {{[-d|--domain]}} {{subdomain.example.com}}

sudo certbot --nginx {{[-d|--domain]}} {{subdomain.example.com}}

sudo certbot --apache {{[-d|--domain]}} {{subdomain.example.com}}

sudo certbot renew

sudo certbot --webroot {{[-w|--webroot-path]}} {{path/to/webroot}} {{[-d|--domain]}} {{subdomain.example.com}} --dry-run

sudo certbot --webroot {{[-w|--webroot-path]}} {{path/to/webroot}} {{[-d|--domain]}} {{subdomain.example.com}} --test-cert