diff options
| -rwxr-xr-x | type/__dtnrch_getssl_cert/gencode-remote | 6 | ||||
| -rw-r--r-- | type/__dtnrch_getssl_cert/man.rst | 4 | ||||
| -rw-r--r-- | type/__dtnrch_getssl_cert/parameter/optional | 1 |
3 files changed, 11 insertions, 0 deletions
diff --git a/type/__dtnrch_getssl_cert/gencode-remote b/type/__dtnrch_getssl_cert/gencode-remote index bb27e2a..a60ddf0 100755 --- a/type/__dtnrch_getssl_cert/gencode-remote +++ b/type/__dtnrch_getssl_cert/gencode-remote @@ -56,6 +56,12 @@ cfg_values_should=$( "${__object:?}/parameter/san" fi + # Chain + if test -s "${__object:?}/parameter/preferred-chain" + then + printf 'PREFERRED_CHAIN="%s"\n' "$(head -n1 "${__object:?}/parameter/preferred-chain")" + fi + # File locations if test -s "${__object:?}/parameter/cert-loc" then diff --git a/type/__dtnrch_getssl_cert/man.rst b/type/__dtnrch_getssl_cert/man.rst index bfab903..4e768db 100644 --- a/type/__dtnrch_getssl_cert/man.rst +++ b/type/__dtnrch_getssl_cert/man.rst @@ -40,6 +40,10 @@ pem-loc extra-config Other configuration options that should be added to the domain ``getssl.cfg``. +preferred-chain + Select the chain which should be used to sign the certificate. + + For more information cf. https://github.com/srvrco/getssl#preferred-chain reload-cmd The command to be executed once a certificate has been issued and copied to the ``--*-loc`` locations. diff --git a/type/__dtnrch_getssl_cert/parameter/optional b/type/__dtnrch_getssl_cert/parameter/optional index ec66fab..c6ec8b1 100644 --- a/type/__dtnrch_getssl_cert/parameter/optional +++ b/type/__dtnrch_getssl_cert/parameter/optional @@ -3,6 +3,7 @@ cert-loc chain-loc key-loc pem-loc +preferred-chain reload-cmd server-type state |
