mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-03-31 14:13:07 +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
|
||||
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"
|
||||
|
||||
Reference in New Issue
Block a user