let_s_encrypt
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
| let_s_encrypt [2024-07-27 22:20:54] – [mit hook] david | let_s_encrypt [2024-07-27 22:24:26] (aktuell) – gelöscht david | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| - | ====== Let's Encrypt (Certbot) | ||
| - | |||
| - | * [[https:// | ||
| - | * [[https:// | ||
| - | |||
| - | |||
| - | ===== Installation ===== | ||
| - | |||
| - | ==== Ubuntu ==== | ||
| - | |||
| - | mit snapd installieren | ||
| - | |||
| - | ==== FreeBSD ==== | ||
| - | |||
| - | Paketnamen: | ||
| - | security/ | ||
| - | security/ | ||
| - | |||
| - | <file bash> | ||
| - | Installing py37-certbot-1.14.0, | ||
| - | This port installs the " | ||
| - | is not the certbot-auto bootstrap/ | ||
| - | |||
| - | The simplest form of usage to obtain certificates is: | ||
| - | |||
| - | # sudo certbot certonly --standalone -d < | ||
| - | |||
| - | NOTE: | ||
| - | |||
| - | The client requires the ability to bind on TCP port 80 or 443 (depending | ||
| - | on the --preferred-challenges option used). If a server is running on that | ||
| - | port, it will need to be temporarily stopped so that the standalone server | ||
| - | can listen on that port to complete the challenge authentication process. | ||
| - | |||
| - | For more information on the ' | ||
| - | |||
| - | https:// | ||
| - | |||
| - | The certbot plugins to support apache and nginx certificate installation | ||
| - | will be made available in the following ports: | ||
| - | |||
| - | * Apache plugin: security/ | ||
| - | * Nginx plugin: security/ | ||
| - | |||
| - | In order to automatically renew the certificates, | ||
| - | / | ||
| - | |||
| - | weekly_certbot_enable=" | ||
| - | |||
| - | More config details in the certbot periodic script: | ||
| - | |||
| - | / | ||
| - | |||
| - | </ | ||
| - | |||
| - | ===== Konfiguration ===== | ||
| - | |||
| - | * https:// | ||
| - | |||
| - | Cloudflare API Token einsetzen: | ||
| - | |||
| - | <code properties / | ||
| - | # Cloudflare API token used by Certbot | ||
| - | dns_cloudflare_api_token = API-TOKEN | ||
| - | </ | ||
| - | |||
| - | ===== Certbot mit Cloudflare-Plugin ===== | ||
| - | |||
| - | |||
| - | ==== Zertifikat erstellen ==== | ||
| - | |||
| - | === Optionen === | ||
| - | |||
| - | * Mit '' | ||
| - | * Möglichkeiten für '' | ||
| - | * Möglichkeiten für '' | ||
| - | |||
| - | |||
| - | === Script === | ||
| - | |||
| - | <code bash / | ||
| - | # | ||
| - | |||
| - | if test -z " | ||
| - | then | ||
| - | printf ' | ||
| - | exit | ||
| - | fi | ||
| - | |||
| - | certbot_create () { | ||
| - | certbot certonly -d " | ||
| - | } | ||
| - | |||
| - | KEY_TYPE=" | ||
| - | EC_NAME=" | ||
| - | certbot_create | ||
| - | |||
| - | KEY_TYPE=" | ||
| - | RSA_SIZE=" | ||
| - | certbot_create | ||
| - | |||
| - | </ | ||
| - | |||
| - | |||
| - | === Manuell === | ||
| - | |||
| - | > DOMAIN=" | ||
| - | > EMAIL=" | ||
| - | | ||
| - | ECDSA | ||
| - | > KEY_TYPE=" | ||
| - | > EC_NAME=" | ||
| - | RSA | ||
| - | > KEY_TYPE=" | ||
| - | > RSA_SIZE=" | ||
| - | | ||
| - | > certbot certonly -d " | ||
| - | |||
| - | |||
| - | ==== Zertifikat erneuern ==== | ||
| - | |||
| - | > certbot renew | ||
| - | |||
| - | mit '' | ||
| - | mit '' | ||
| - | |||
| - | |||
| - | ==== aktuelle Zertifikate auflisten und Details anzeigen ==== | ||
| - | |||
| - | > certbot certificates | ||
| - | Saving debug log to / | ||
| - | | ||
| - | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
| - | Found the following certs: | ||
| - | Certificate Name: domain.de | ||
| - | Serial Number: 3e9470e7f5c730e3e2da4640e61a01f23f6 | ||
| - | Key Type: RSA | ||
| - | Domains: domain.de *.domain.de | ||
| - | Expiry Date: 2021-10-16 22: | ||
| - | Certificate Path: / | ||
| - | Private Key Path: / | ||
| - | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
| - | |||
| - | |||
| - | ==== crontab ==== | ||
| - | |||
| - | zertifikate wöchentlich erneuern (falls kurz vorm ablaufen): | ||
| - | |||
| - | <code bash / | ||
| - | MAILTO="" | ||
| - | @weekly root certbot renew > / | ||
| - | </ | ||
| - | |||
| - | |||
| - | === mit hook === | ||
| - | |||
| - | z.b. bei tatsächlicher erneuerung nginx neustarten | ||
| - | |||
| - | <code bash / | ||
| - | @weekly root certbot renew --post-hook / | ||
| - | </ | ||
| - | |||
| - | <code bash / | ||
| - | # | ||
| - | |||
| - | service nginx restart 2> /dev/null | ||
| - | </ | ||
| - | |||
/home/http/wiki/data/attic/let_s_encrypt.1722118854.txt · Zuletzt geändert: von david
