mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-07-06 13:05:18 +02:00
export altnames so it can be used in hook scripts (fixes #360)
This commit is contained in:
@@ -513,6 +513,7 @@ sign_csr() {
|
|||||||
if [ -z "${altnames}" ]; then
|
if [ -z "${altnames}" ]; then
|
||||||
altnames="$( extract_altnames "${csr}" )"
|
altnames="$( extract_altnames "${csr}" )"
|
||||||
fi
|
fi
|
||||||
|
export altnames
|
||||||
|
|
||||||
if [[ -z "${CA_NEW_AUTHZ}" ]] || [[ -z "${CA_NEW_CERT}" ]]; then
|
if [[ -z "${CA_NEW_AUTHZ}" ]] || [[ -z "${CA_NEW_CERT}" ]]; then
|
||||||
_exiterr "Certificate authority doesn't allow certificate signing"
|
_exiterr "Certificate authority doesn't allow certificate signing"
|
||||||
@@ -715,6 +716,8 @@ sign_domain() {
|
|||||||
altnames="${*}"
|
altnames="${*}"
|
||||||
timestamp="$(date +%s)"
|
timestamp="$(date +%s)"
|
||||||
|
|
||||||
|
export altnames
|
||||||
|
|
||||||
echo " + Signing domains..."
|
echo " + Signing domains..."
|
||||||
if [[ -z "${CA_NEW_AUTHZ}" ]] || [[ -z "${CA_NEW_CERT}" ]]; then
|
if [[ -z "${CA_NEW_AUTHZ}" ]] || [[ -z "${CA_NEW_CERT}" ]]; then
|
||||||
_exiterr "Certificate authority doesn't allow certificate signing"
|
_exiterr "Certificate authority doesn't allow certificate signing"
|
||||||
|
|||||||
Reference in New Issue
Block a user