implement certificate aliases as suggested by typingArtist (fixes #396)

This commit is contained in:
Lukas Schauer
2017-12-17 23:50:46 +01:00
parent eb1c4ac41d
commit c62f3d91fc
5 changed files with 39 additions and 4 deletions

View File

@@ -7,7 +7,13 @@ The file should have the following format:
```text
example.com www.example.com
example.net www.example.net wiki.example.net
example.net www.example.net wiki.example.net > certalias
```
This states that there should be two certificates `example.com` and `example.net`,
with the other domains in the corresponding line being their alternative names.
You can define an alias for your certificate which will (instead of the primary domain) be
used as directory name under your certdir and for a per-certificate lookup.
This allows multiple certificates with identical sets of domains but different configuration
to exist.

View File

@@ -16,3 +16,10 @@ Currently supported options:
- WELLKNOWN
- OPENSSL_CNF
- RENEW_DAYS
## DOMAINS_D
If `DOMAINS_D` is set, dehydrated will use it for your per-certificate configurations.
Instead of `certs/example.org/config` it will look for a configuration under `DOMAINS_D/example.org`.
If an alias is set, it will be used instead of the primary domain name.