Update cheatsheets

This commit is contained in:
ivuorinen
2025-04-26 00:18:47 +00:00
parent 9b06c2023f
commit 47db9e503e
127 changed files with 302 additions and 302 deletions

View File

@@ -7,19 +7,19 @@ source: https://github.com/tldr-pages/tldr.git
> The Let's Encrypt Agent for automatically obtaining and renewing TLS certificates.
> Successor to `letsencrypt`.
> More information: <https://certbot.eff.org/docs/using.html>.
> More information: <https://eff-certbot.readthedocs.io/en/latest/using.html>.
- 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}}`
`sudo certbot certonly --webroot {{[-w|--webroot-path]}} {{path/to/webroot}} {{[-d|--domain]}} {{subdomain.example.com}}`
- Obtain a new certificate via nginx authorization, installing the new certificate automatically:
`sudo certbot --nginx --domain {{subdomain.example.com}}`
`sudo certbot --nginx {{[-d|--domain]}} {{subdomain.example.com}}`
- Obtain a new certificate via apache authorization, installing the new certificate automatically:
`sudo certbot --apache --domain {{subdomain.example.com}}`
`sudo certbot --apache {{[-d|--domain]}} {{subdomain.example.com}}`
- Renew all Let's Encrypt certificates that expire in 30 days or less (don't forget to restart any servers that use them afterwards):
@@ -27,8 +27,8 @@ source: https://github.com/tldr-pages/tldr.git
- 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`
`sudo certbot --webroot {{[-w|--webroot-path]}} {{path/to/webroot}} {{[-d|--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`
`sudo certbot --webroot {{[-w|--webroot-path]}} {{path/to/webroot}} {{[-d|--domain]}} {{subdomain.example.com}} --test-cert`