Wir nutzen `acme_tiny` für Let's Encrypt. Zertifikate sind in `/etc/ssl/letsencrypt`. Dort gibt es auch ein `renew.sh` Script zum automatischen Erneuern der Domains, was man in die `crontab` packen kann.
~~Wir nutzen `acme_tiny` für Let's Encrypt. Zertifikate sind in `/etc/ssl/letsencrypt`. Dort gibt es auch ein `renew.sh` Script zum automatischen Erneuern der Domains, was man in die `crontab` packen kann.~~
## Zertifikat für Domain erstellen.
## acme.sh
`acme.sh` macht das alles einfacher. alles zu `acme_tiny` ist obsolet.
## acme_tiny: Zertifikat für Domain erstellen.
[Ausführliche Dokumentation auf GitHub](https://github.com/drdaeman/acme-tiny/blob/f995b09b67498ef6fc538867eeeb63643cba5702/README.md)
[Ausführliche Dokumentation auf GitHub](https://github.com/drdaeman/acme-tiny/blob/f995b09b67498ef6fc538867eeeb63643cba5702/README.md)
...
@@ -118,7 +123,7 @@ Wir nutzen `acme_tiny` für Let's Encrypt. Zertifikate sind in `/etc/ssl/letsenc
...
@@ -118,7 +123,7 @@ Wir nutzen `acme_tiny` für Let's Encrypt. Zertifikate sind in `/etc/ssl/letsenc
# openssl genrsa 4096 > subdomain.bau-ha.us.key
# openssl genrsa 4096 > subdomain.bau-ha.us.key
```
```
## CSR Request erstellen
## acme_tiny: CSR Request erstellen
```
```
# openssl req -new -sha256 \
# openssl req -new -sha256 \
...
@@ -140,6 +145,8 @@ Wir nutzen `acme_tiny` für Let's Encrypt. Zertifikate sind in `/etc/ssl/letsenc
...
@@ -140,6 +145,8 @@ Wir nutzen `acme_tiny` für Let's Encrypt. Zertifikate sind in `/etc/ssl/letsenc
## Challenges Verzeichnis in nginx Konfiguration einbinden
## Challenges Verzeichnis in nginx Konfiguration einbinden
muss laufen für acme.sh und acme_tiny
```
```
# /etc/nginx/sites-available/subdomain.bau-ha.us
# /etc/nginx/sites-available/subdomain.bau-ha.us
server {
server {
...
@@ -151,13 +158,14 @@ server {
...
@@ -151,13 +158,14 @@ server {
try_files $uri =404;
try_files $uri =404;
}
}
// optional redirect https-only
location / {
location / {
return 301 https://$host$request_uri;
return 301 https://$host$request_uri;
}
}
}
}
```
```
## Zertifikat von Let's Encrypt unterschreiben lassen.
## acme_tiny: Zertifikat von Let's Encrypt unterschreiben lassen.