lets_encrypt
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
| lets_encrypt [19.11.2021 09:57] – [Erstinstallation] thooge | lets_encrypt [20.11.2023 16:13] (aktuell) – thooge | ||
|---|---|---|---|
| Zeile 16: | Zeile 16: | ||
| </ | </ | ||
| - Account-Schlüssel anlegen< | - Account-Schlüssel anlegen< | ||
| + | cd / | ||
| openssl genrsa 2048 > account.key | openssl genrsa 2048 > account.key | ||
| chmod 400 account.key | chmod 400 account.key | ||
| Zeile 21: | Zeile 22: | ||
| - Domainschlüssel anlegen< | - Domainschlüssel anlegen< | ||
| openssl genrsa 2048 > / | openssl genrsa 2048 > / | ||
| - | chmod 640 < | + | chmod 640 / |
| </ | </ | ||
| - SAN-Konfiguration erstellen, SAN können über die Angabe einer Konfigurationsdatei mit Optionen eingestellt werden. Beachte, daß die Hauptdomain ebenfalls in die Liste der SAN eingeschlossen wird. <file conf domain-san.conf> | - SAN-Konfiguration erstellen, SAN können über die Angabe einer Konfigurationsdatei mit Optionen eingestellt werden. Beachte, daß die Hauptdomain ebenfalls in die Liste der SAN eingeschlossen wird. <file conf domain-san.conf> | ||
| Zeile 40: | Zeile 41: | ||
| </ | </ | ||
| - CSR erstellen< | - CSR erstellen< | ||
| - | openssl req -new -sha256 -key < | + | openssl req -new -sha256 -key / |
| + | | ||
| chmod 640 < | chmod 640 < | ||
| </ | </ | ||
| Zeile 49: | Zeile 51: | ||
| mkdir challenges | mkdir challenges | ||
| chmod 750 challenges | chmod 750 challenges | ||
| - | chown www-data. challenges | + | chgrp www-data challenges |
| </ | </ | ||
| * Lighttpd:< | * Lighttpd:< | ||
| Zeile 57: | Zeile 59: | ||
| url.redirect = ( | url.redirect = ( | ||
| " | " | ||
| - | " | + | " |
| ) | ) | ||
| } | } | ||
| Zeile 82: | Zeile 84: | ||
| chmod 640 < | chmod 640 < | ||
| </ | </ | ||
| - | - Zertifikat | + | - Zertifikat an Zielposition ablegen< |
| cp -p < | cp -p < | ||
| - | mv < | ||
| </ | </ | ||
| - Anschließend Zertifikat und Schlüssel im der entsprechenden Webserverkonfiguration einbauen | - Anschließend Zertifikat und Schlüssel im der entsprechenden Webserverkonfiguration einbauen | ||
| Zeile 103: | Zeile 104: | ||
| - Erneuertes Zertifikat anfordern< | - Erneuertes Zertifikat anfordern< | ||
| - | ./acme_tiny.py | + | cd /var/www/lets_encrypt |
| + | acme-tiny | ||
| chmod 640 < | chmod 640 < | ||
| </ | </ | ||
| - | - Intermediate Zertifikat holen und anfügen< | + | - ggf. Intermediate Zertifikat holen und anfügen< |
| wget -O - https:// | wget -O - https:// | ||
| cat intermediate.pem >> < | cat intermediate.pem >> < | ||
| </ | </ | ||
| - Zertifikat ind Schlüssel an Zielposition ablegen< | - Zertifikat ind Schlüssel an Zielposition ablegen< | ||
| - | cp < | + | cp -p < |
| </ | </ | ||
| - Neuladen der Serverkonfiguration< | - Neuladen der Serverkonfiguration< | ||
lets_encrypt.1637315842.txt.gz · Zuletzt geändert: von thooge
