mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-25 22:51:39 +00:00
add sign error check.
This commit is contained in:
parent
9d548d81ac
commit
29b7510957
8
acme.sh
8
acme.sh
@ -1185,7 +1185,13 @@ _send_signed_request() {
|
||||
protected64="$(printf "$protected" | _base64 | _urlencode)"
|
||||
_debug3 protected64 "$protected64"
|
||||
|
||||
sig=$(printf "%s" "$protected64.$payload64" | _sign "$keyfile" "sha256" | _urlencode)
|
||||
if ! _sig_t="$(printf "%s" "$protected64.$payload64" | _sign "$keyfile" "sha256")" ; then
|
||||
_err "Sign request failed."
|
||||
return 1
|
||||
fi
|
||||
_debug3 _sig_t "$_sig_t"
|
||||
|
||||
sig="$(printf "%s" "$_sig_t" | _urlencode)"
|
||||
_debug3 sig "$sig"
|
||||
|
||||
body="{\"header\": $JWK_HEADER, \"protected\": \"$protected64\", \"payload\": \"$payload64\", \"signature\": \"$sig\"}"
|
||||
|
Loading…
Reference in New Issue
Block a user