Browse Source

Fix base64 invalid input error

pull/740/head
Tim Kimber 6 years ago
parent
commit
91d0bfb6b1
1 changed files with 3 additions and 4 deletions
  1. +3
    -4
      getssl

+ 3
- 4
getssl View File

@ -1436,10 +1436,9 @@ send_signed_request() { # Sends a request to the ACME server, signed with your p
fi
responseHeaders=$(cat "$CURL_HEADER")
if [[ "$needbase64" && ${response##*()} != "{"* ]]; then
# response is in base64 too, decode
#!FIXME need to use openssl base64 decoder if it exists
response=$(echo "$response" | base64 -d)
if [[ "$needbase64" && ${response##\()} != "{"* ]]; then
# response is in base64 too, decode (append = to otherwise openssl truncates output)
response=$(echo "${response}=" | openssl base64 -d)
fi
debug responseHeaders "$responseHeaders"


Loading…
Cancel
Save