Browse Source

Merge pull request #428 from pixelart/bugfix/agreement-auto-approve

Case insensitive processing of agreement url because of HTTP/2
pull/299/merge v2.12
Emii Khaos 6 years ago
committed by GitHub
parent
commit
8cbf31be38
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      getssl

+ 3
- 2
getssl View File

@ -185,10 +185,11 @@
# 2017-01-30 issue #243 additional compatibility with bash 3.0 (2.09) # 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-02-18 add OCSP Must-Staple to the domain csr generation (2.10)
# 2019-09-30 issue #423 Use HTTP 1.1 as workaround atm (2.11) # 2019-09-30 issue #423 Use HTTP 1.1 as workaround atm (2.11)
# 2019-10-02 issue #425 Case insensitive processing of agreement url because of HTTP/2 (2.12)
# ---------------------------------------------------------------------------------------- # ----------------------------------------------------------------------------------------
PROGNAME=${0##*/} PROGNAME=${0##*/}
VERSION="2.11"
VERSION="2.12"
# defaults # defaults
ACCOUNT_KEY_LENGTH=4096 ACCOUNT_KEY_LENGTH=4096
@ -1483,7 +1484,7 @@ if [[ $_REVOKE -eq 1 ]]; then
fi fi
# get latest agreement from CA (as default) # get latest agreement from CA (as default)
AGREEMENT=$(curl -I "${CA}/terms" 2>/dev/null | awk '$1 ~ "Location:" {print $2}'|tr -d '\r')
AGREEMENT=$(curl -I "${CA}/terms" 2>/dev/null | awk 'tolower($1) ~ "location:" {print $2}'|tr -d '\r')
# if nothing in command line, print help and exit. # if nothing in command line, print help and exit.
if [[ -z "$DOMAIN" ]] && [[ ${_CHECK_ALL} -ne 1 ]]; then if [[ -z "$DOMAIN" ]] && [[ ${_CHECK_ALL} -ne 1 ]]; then


Loading…
Cancel
Save