mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-05-11 05:32:48 +00:00
fix PAG,
The newline '\n' in response is removed by _send_signed_request(), to keep it, we just use needbase64
This commit is contained in:
parent
6e48a9d20a
commit
ca541ed921
4
acme.sh
4
acme.sh
@ -4146,14 +4146,14 @@ $_authorizations_map"
|
|||||||
Le_LinkCert="$(echo "$response" | tr -d '\r\n' | _egrep_o '"certificate" *: *"[^"]*"' | cut -d '"' -f 4)"
|
Le_LinkCert="$(echo "$response" | tr -d '\r\n' | _egrep_o '"certificate" *: *"[^"]*"' | cut -d '"' -f 4)"
|
||||||
|
|
||||||
_tempSignedResponse="$response"
|
_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 "Sign failed, can not download cert:$Le_LinkCert."
|
||||||
_err "$response"
|
_err "$response"
|
||||||
_on_issue_err "$_post_hook"
|
_on_issue_err "$_post_hook"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "$response" >"$CERT_PATH";
|
echo "$response" | _dbase64 >"$CERT_PATH";
|
||||||
|
|
||||||
if [ "$(grep -- "$BEGIN_CERT" "$CERT_PATH" | wc -l)" -gt "1" ]; then
|
if [ "$(grep -- "$BEGIN_CERT" "$CERT_PATH" | wc -l)" -gt "1" ]; then
|
||||||
_debug "Found cert chain"
|
_debug "Found cert chain"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user