export altnames so it can be used in hook scripts (fixes #360)

This commit is contained in:
Lukas Schauer
2017-07-11 00:47:37 +02:00
parent 4e7fb80bcd
commit 367ef574f1

View File

@@ -513,6 +513,7 @@ sign_csr() {
if [ -z "${altnames}" ]; then
altnames="$( extract_altnames "${csr}" )"
fi
export altnames
if [[ -z "${CA_NEW_AUTHZ}" ]] || [[ -z "${CA_NEW_CERT}" ]]; then
_exiterr "Certificate authority doesn't allow certificate signing"
@@ -715,6 +716,8 @@ sign_domain() {
altnames="${*}"
timestamp="$(date +%s)"
export altnames
echo " + Signing domains..."
if [[ -z "${CA_NEW_AUTHZ}" ]] || [[ -z "${CA_NEW_CERT}" ]]; then
_exiterr "Certificate authority doesn't allow certificate signing"