certbot

The Let's Encrypt Agent for automatically obtaining and renewing TLS certificates. Successor to letsencrypt. More information: https://certbot.eff.org/docs/using.html.

sudo certbot certonly --webroot --webroot-path path/to/webroot --domain subdomain.example.com

sudo certbot --nginx --domain subdomain.example.com

sudo certbot --apache --domain subdomain.example.com

sudo certbot renew

sudo certbot --webroot --webroot-path path/to/webroot --domain subdomain.example.com --dry-run

sudo certbot --webroot --webroot-path path/to/webroot --domain subdomain.example.com --test-cert