From ca541ed921c64e9e9507eee17f6de307a720b3c4 Mon Sep 17 00:00:00 2001 From: neilpang Date: Sun, 6 Jan 2019 19:33:54 +0800 Subject: [PATCH] fix PAG, The newline '\n' in response is removed by _send_signed_request(), to keep it, we just use needbase64 --- acme.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/acme.sh b/acme.sh index e14f2dfe..477f742e 100755 --- a/acme.sh +++ b/acme.sh @@ -4146,14 +4146,14 @@ $_authorizations_map" Le_LinkCert="$(echo "$response" | tr -d '\r\n' | _egrep_o '"certificate" *: *"[^"]*"' | cut -d '"' -f 4)" _tempSignedResponse="$response" - if ! _send_signed_request "$Le_LinkCert"; then + if ! _send_signed_request "$Le_LinkCert" "" "needbase64"; then _err "Sign failed, can not download cert:$Le_LinkCert." _err "$response" _on_issue_err "$_post_hook" return 1 fi - echo "$response" >"$CERT_PATH"; + echo "$response" | _dbase64 >"$CERT_PATH"; if [ "$(grep -- "$BEGIN_CERT" "$CERT_PATH" | wc -l)" -gt "1" ]; then _debug "Found cert chain"