Certbot Benutzung
Befehle
Zertifikate anzeigen
# certbot certificates
Saving debug log to /var/log/letsencrypt/letsencrypt.log
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Found the following certs:
Certificate Name: frzn.io
Serial Number: xxxxxxxxxxxxxxxxxxxxxxxx
Key Type: RSA
Domains: frzn.io *.frzn.io
Expiry Date: 2021-12-19 11:43:52+00:00 (VALID: 89 days)
Certificate Path: /etc/letsencrypt/live/frzn.io/fullchain.pem
Private Key Path: /etc/letsencrypt/live/frzn.io/privkey.pem
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Zertifikat erstellen
# certbot certonly --dns-cloudflare --dns-cloudflare-credentials /PATH/TO/SECRETS/cloudflareapi.ini -d frzn.io,*.frzn.io --preferred-challenges dns --dns-cloudflare-propagation-seconds 20
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Requesting a certificate for frzn.io and *.frzn.io
Waiting 20 seconds for DNS changes to propagate
Successfully received certificate.
Certificate is saved at: /etc/letsencrypt/live/frzn.io/fullchain.pem
Key is saved at: /etc/letsencrypt/live/frzn.io/privkey.pem
This certificate expires on 2021-12-19.
These files will be updated when the certificate renews.
Certbot has set up a scheduled task to automatically renew this certificate in the background.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
If you like Certbot, please consider supporting our work by:
* Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate
* Donating to EFF: https://eff.org/donate-le
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Zertifikate löschen
# certbot delete --cert-name frzn.io-0002
Saving debug log to /var/log/letsencrypt/letsencrypt.log
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
The following certificate(s) are selected for deletion:
* frzn.io-0002
Are you sure you want to delete the above certificate(s)?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(Y)es/(N)o: y
Deleted all files relating to certificate frzn.io-0002.
Zertifikate automatisch erneuern
0 23 */10 * * /usr/bin/certbot renew --quiet > /dev/null 2>&1