mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-24 13:15:24 +02:00
certbot: add page (#2030)
This commit is contained in:
parent
6832c97b31
commit
e97bffa53d
1 changed files with 28 additions and 0 deletions
28
pages/linux/certbot.md
Normal file
28
pages/linux/certbot.md
Normal file
|
@ -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`
|
Loading…
Add table
Reference in a new issue