Browse Source

allowing curl to follow redirects ( when acme-challenge is redirected to https )

pull/3/head
srvrco 10 years ago
parent
commit
3f0f118f17
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      getssl

+ 2
- 2
getssl View File

@ -25,7 +25,7 @@
# 2016-01-18 added option to upload a single PEN file ( used by cpanel) (v0.7)
# 2016-01-23 added dns challenge option (v0.8)
# 2016-01-24 create the ACL directory if it does not exist. (v0.9) - dstosberg
# 2016-01-26 correcting a couple of small bugs (v0.10)
# 2016-01-26 correcting a couple of small bugs and allow curl to follow redirects (v0.10)
# ---------------------------------------------------------------------------
PROGNAME=${0##*/}
@ -561,7 +561,7 @@ for d in $alldomains; do
wellknown_url="http://$d/.well-known/acme-challenge/$token"
debug wellknown_url "$wellknown_url"
if [ ! "$(curl --silent $wellknown_url)" == "$keyauthorization" ]; then
if [ ! "$(curl --silent --location $wellknown_url)" == "$keyauthorization" ]; then
error_exit "for some reason could not reach $wellknown_url - please check it manually"
fi
fi


Loading…
Cancel
Save