Browse Source

Merge 00467b6207 into 5343070654

pull/267/merge
zazaz-de 7 years ago
committed by GitHub
parent
commit
2a9cfd4ff7
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      getssl

+ 6
- 1
getssl View File

@ -184,10 +184,11 @@
# 2017-01-30 issue #243 compatibility with bash 3.0 (2.08)
# 2017-01-30 issue #243 additional compatibility with bash 3.0 (2.09)
# 2017-02-18 add OCSP Must-Staple to the domain csr generation (2.10)
# 2017-03-16 implemented replacing ${DOMAIN} in ACL with current domain name (2.11)
# ----------------------------------------------------------------------------------------
PROGNAME=${0##*/}
VERSION="2.10"
VERSION="2.11"
# defaults
ACCOUNT_KEY_LENGTH=4096
@ -383,6 +384,8 @@ check_config() { # check the config files for all obvious errors
DOMAIN_ACL="${ACL[$dn]}"
fi
DOMAIN_ACL=$(echo $DOMAIN_ACL | sed -e "s/\${DOMAIN}/${d}/g")
if [[ $VALIDATE_VIA_DNS != "true" ]]; then # using http-01 challenge
if [[ -z "${DOMAIN_ACL}" ]]; then
info "${DOMAIN}: ACL location not specified for domain $d in $DOMAIN_DIR/getssl.cfg"
@ -1815,6 +1818,8 @@ for d in $alldomains; do
DOMAIN_ACL="${ACL[$dn]}"
fi
DOMAIN_ACL=$(echo $DOMAIN_ACL | sed -e "s/\${DOMAIN}/${d}/g")
# request a challenge token from ACME server
request="{\"resource\":\"new-authz\",\"identifier\":{\"type\":\"dns\",\"value\":\"$d\"}}"
send_signed_request "$URL_new_authz" "$request"


Loading…
Cancel
Save