]> git.ipfire.org Git - thirdparty/dehydrated.git/commitdiff
Add more examples to show case how to create certs
authorMarcus Rückert <darix@nordisch.org>
Mon, 29 Mar 2021 18:15:32 +0000 (20:15 +0200)
committerLukas Schauer <lukas@schauer.dev>
Mon, 29 Mar 2021 18:19:41 +0000 (20:19 +0200)
e.g. with different key algorithms

docs/domains_txt.md
docs/examples/domains.txt

index 6a8915ecc658608472078c0e59fc9ec2f96100e9..f4090d83cf516d78a1ec27358c996931fddc12b6 100644 (file)
@@ -34,6 +34,30 @@ under your `CERTDIR`.
 example.net www.example.net wiki.example.net > certalias
 ```
 
+This allows to set per certificates options. The options you can change are
+explained in [Per Certificate Config](per-certificate-config.md).
+
+If you want to create different certificate types for the same domain
+you can use:
+
+```text
+*.service.example.org service.example.org  > star_service_example_org_rsa
+*.service.example.org service.example.org  > star_service_example_org_ecdsa
+```
+
+Then add a config file `certs/star_service_example_org_rsa/config` with
+the value
+
+```
+KEY_ALGO="rsa"
+```
+
+or respectively
+
+```
+KEY_ALGO="ecdsa"
+```
+
 ### Wildcards
 
 Support for wildcards was added by the ACME v2 protocol.
index 39acaf3430e65d8bded6999f0de7a11c201a08b0..e0dea4730df1649b115c535c434e8db438607b85 100644 (file)
@@ -24,6 +24,15 @@ example.net www.example.net > certalias
 # NOTE: It is a certificate for 'service.example.org'
 *.service.example.org service.example.org  > star_service_example_org
 
+# Optionally you can also append the certificate algorithm here to create
+# multiple certificate types for the same domain.
+#
+# This allows to set per certificates options. How to do this is
+# explained in [domains.txt documentation](../domains_txt.md).
+#
+*.service.example.org service.example.org  > star_service_example_org_rsa
+*.service.example.org service.example.org  > star_service_example_org_ecdsa
+
 # Create a certificate for 'service.example.net' with an alternative name of
 # '*.service.example.net' (which is a wildcard domain) and store it in the
 # directory ${CERTDIR}/service.example.net