]> git.ipfire.org Git - thirdparty/dehydrated.git/commitdiff
export altnames so it can be used in hook scripts (fixes #360)
authorLukas Schauer <lukas@schauer.so>
Mon, 10 Jul 2017 22:47:37 +0000 (00:47 +0200)
committerLukas Schauer <lukas@schauer.so>
Mon, 10 Jul 2017 22:47:37 +0000 (00:47 +0200)
dehydrated

index 84adfe381350c429cfa862e6d8dcbf6e6e337814..73fdb495775b07984c2eec13eb0d0cf8ca38aeff 100755 (executable)
@@ -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"