From 71f69c04deef518d68aaf567b263df999a145184 Mon Sep 17 00:00:00 2001 From: Dennis Camera Date: Mon, 11 Jul 2022 17:36:41 +0200 Subject: [type/__dtnrch_getssl_cert] Add --preferred-chain parameter --- type/__dtnrch_getssl_cert/gencode-remote | 6 ++++++ type/__dtnrch_getssl_cert/man.rst | 4 ++++ type/__dtnrch_getssl_cert/parameter/optional | 1 + 3 files changed, 11 insertions(+) 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 -- cgit v1.2.3