Browse Source

Merge pull request #426 from pixelart/bugfix/account-registration-error

Use HTTP 1.1 as workaround atm
pull/428/head
Emii Khaos 6 years ago
committed by GitHub
parent
commit
fdf06dacaf
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 2 deletions
  1. +10
    -2
      getssl

+ 10
- 2
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-09-30 issue #423 Use HTTP 1.1 as workaround atm (2.11)
# ----------------------------------------------------------------------------------------
PROGNAME=${0##*/}
VERSION="2.10"
VERSION="2.11"
# defaults
ACCOUNT_KEY_LENGTH=4096
@ -1135,7 +1136,14 @@ send_signed_request() { # Sends a request to the ACME server, signed with your p
CURL_HEADER="$TEMP_DIR/curl.header"
dp="$TEMP_DIR/curl.dump"
CURL="curl --silent --dump-header $CURL_HEADER "
CURL="curl "
if [[ "$($CURL -V | head -1 | cut -d' ' -f2 )" > "7.33" ]]; then
CURL="$CURL --http1.1 "
fi
CURL="$CURL --silent --dump-header $CURL_HEADER "
if [[ ${_USE_DEBUG} -eq 1 ]]; then
CURL="$CURL --trace-ascii $dp "
fi


Loading…
Cancel
Save