Skip to content

Commit ed6c14b

Browse files
author
serverco
authored
Merge pull request #185 from uwedisch/patch-1
add HTTP_TOKEN_CHECK_WAIT option (1.84)
2 parents 568bb72 + 61bb285 commit ed6c14b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

getssl

+4-1
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,11 @@
157157
# 2016-11-09 Add SKIP_HTTP_TOKEN_CHECK option (Issue #170) (1.81)
158158
# 2016-11-13 bug fix DOMAIN_KEY_CERT generation (1.82)
159159
# 2016-11-17 add PREVENT_NON_INTERACTIVE_RENEWAL option (1.83)
160+
# 2016-12-03 add HTTP_TOKEN_CHECK_WAIT option (1.84)
160161
# ----------------------------------------------------------------------------------------
161162

162163
PROGNAME=${0##*/}
163-
VERSION="1.83"
164+
VERSION="1.84"
164165

165166
# defaults
166167
CODE_LOCATION="https://raw.githubusercontent.com/srvrco/getssl/master/getssl"
@@ -189,6 +190,7 @@ DEACTIVATE_AUTH="false"
189190
PREVIOUSLY_VALIDATED="true"
190191
DUAL_RSA_ECDSA="false"
191192
SKIP_HTTP_TOKEN_CHECK="false"
193+
HTTP_TOKEN_CHECK_WAIT=0
192194
ORIG_UMASK=$(umask)
193195
_USE_DEBUG=0
194196
_CREATE_CONFIG=0
@@ -1694,6 +1696,7 @@ for d in $alldomains; do
16941696
if [[ "$SKIP_HTTP_TOKEN_CHECK" == "true" ]]; then
16951697
info "SKIP_HTTP_TOKEN_CHECK=true so not checking that token is working correctly"
16961698
else
1699+
sleep "$HTTP_TOKEN_CHECK_WAIT"
16971700
# check that we can reach the challenge ourselves, if not, then error
16981701
if [[ ! "$(curl -k --silent --location "$wellknown_url")" == "$keyauthorization" ]]; then
16991702
error_exit "for some reason could not reach $wellknown_url - please check it manually"

0 commit comments

Comments
 (0)