From e97bffa53d2f0a245be10abf7566055083f7bbd4 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Mon, 19 Mar 2018 06:15:16 +0000 Subject: [PATCH] certbot: add page (#2030) --- pages/linux/certbot.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 pages/linux/certbot.md diff --git a/pages/linux/certbot.md b/pages/linux/certbot.md new file mode 100644 index 0000000000..e5dbd39a19 --- /dev/null +++ b/pages/linux/certbot.md @@ -0,0 +1,28 @@ +# certbot + +> The Let's Encrypt Agent for automatically obtaining and renewing TLS certificates. +> Successor to `letsencrypt`. + +- 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}}` + +- Obtain a new certificate via nginx authorization, installing the new certificate automatically: + +`sudo certbot --nginx --domain {{subdomain.example.com}}` + +- Obtain a new certificate via apache authorization, installing the new certificate automatically: + +`sudo certbot --apache --domain {{subdomain.example.com}}` + +- Renew all Let's Encrypt certificates that in 30 days or less (don't forget to restart any servers that use them afterwards): + +`sudo certbot renew` + +- 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` + +- Obtain an untrusted test certificate instead: + +`sudo certbot --webroot --webroot-path {{path/to/webroot}} --domain {{subdomain.example.com}} --test-cert`