Skip to content

Commit 8cbf31b

Browse files
authored
Merge pull request #428 from pixelart/bugfix/agreement-auto-approve
Case insensitive processing of agreement url because of HTTP/2
2 parents 867ae36 + 70f5443 commit 8cbf31b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

getssl

+3-2
Original file line numberDiff line numberDiff line change
@@ -185,10 +185,11 @@
185185
# 2017-01-30 issue #243 additional compatibility with bash 3.0 (2.09)
186186
# 2017-02-18 add OCSP Must-Staple to the domain csr generation (2.10)
187187
# 2019-09-30 issue #423 Use HTTP 1.1 as workaround atm (2.11)
188+
# 2019-10-02 issue #425 Case insensitive processing of agreement url because of HTTP/2 (2.12)
188189
# ----------------------------------------------------------------------------------------
189190

190191
PROGNAME=${0##*/}
191-
VERSION="2.11"
192+
VERSION="2.12"
192193

193194
# defaults
194195
ACCOUNT_KEY_LENGTH=4096
@@ -1483,7 +1484,7 @@ if [[ $_REVOKE -eq 1 ]]; then
14831484
fi
14841485

14851486
# get latest agreement from CA (as default)
1486-
AGREEMENT=$(curl -I "${CA}/terms" 2>/dev/null | awk '$1 ~ "Location:" {print $2}'|tr -d '\r')
1487+
AGREEMENT=$(curl -I "${CA}/terms" 2>/dev/null | awk 'tolower($1) ~ "location:" {print $2}'|tr -d '\r')
14871488

14881489
# if nothing in command line, print help and exit.
14891490
if [[ -z "$DOMAIN" ]] && [[ ${_CHECK_ALL} -ne 1 ]]; then

0 commit comments

Comments
 (0)