mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-07-05 20:51:48 +02:00
document using -t tls-alpn-01 with lighttpd
This commit is contained in:
committed by
Lukas Schauer
parent
00941472b2
commit
374fce0249
@@ -6,6 +6,26 @@ It will do that for any (sub-)domain you want to sign a certificate for.
|
|||||||
|
|
||||||
Dehydrated generates the required verification certificates, but the delivery is out of its scope.
|
Dehydrated generates the required verification certificates, but the delivery is out of its scope.
|
||||||
|
|
||||||
|
### Example lighttpd config
|
||||||
|
|
||||||
|
lighttpd can be configured to recognize ALPN `acme-tls/1` and to respond to such
|
||||||
|
requests using the specially crafted TLS certificates generated by dehydrated.
|
||||||
|
Configure lighttpd and dehydrated to use the same path for these certificates.
|
||||||
|
(Be sure to allow read access to the user account under which the lighttpd
|
||||||
|
server is running.) `mkdir -p /etc/dehydrated/alpn-certs`
|
||||||
|
|
||||||
|
lighttpd.conf:
|
||||||
|
```
|
||||||
|
ssl.acme-tls-1 = "/etc/dehydrated/alpn-certs"
|
||||||
|
```
|
||||||
|
|
||||||
|
When renewing certificates, specify `-t tls-alpn-01` and `--alpn /etc/dehydrated/alpn-certs` to dehydrated, e.g.
|
||||||
|
```
|
||||||
|
dehydrated -t tls-alpn-01 --alpn /etc/dehydrated/alpn-certs -c --out /etc/lighttpd/certs -d www.example.com
|
||||||
|
# gracefully reload lighttpd to use the new certificates by sending lighttpd pid SIGUSR1
|
||||||
|
systemctl reload lighttpd
|
||||||
|
```
|
||||||
|
|
||||||
### Example nginx config
|
### Example nginx config
|
||||||
|
|
||||||
On an nginx tcp load-balancer you can use the `ssl_preread` module to map a different port for acme-tls
|
On an nginx tcp load-balancer you can use the `ssl_preread` module to map a different port for acme-tls
|
||||||
|
|||||||
Reference in New Issue
Block a user