Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
3761fb43
Commit
3761fb43
authored
Jul 08, 2023
by
neil
Browse files
fix bug
https://github.com/acmesh-official/acme.sh/issues/4442
parent
0472f5da
Changes
1
Show whitespace changes
Inline
Side-by-side
acme.sh
View file @
3761fb43
...
@@ -2116,6 +2116,7 @@ _send_signed_request() {
...
@@ -2116,6 +2116,7 @@ _send_signed_request() {
if [ -z "$keyfile" ]; then
if [ -z "$keyfile" ]; then
keyfile="$ACCOUNT_KEY_PATH"
keyfile="$ACCOUNT_KEY_PATH"
fi
fi
_debug "=======Begin Send Signed Request======="
_debug url "$url"
_debug url "$url"
_debug payload "$payload"
_debug payload "$payload"
...
@@ -4602,9 +4603,10 @@ issue() {
...
@@ -4602,9 +4603,10 @@ issue() {
_d="*.$_d"
_d="*.$_d"
fi
fi
_debug2 _d "$_d"
_debug2 _d "$_d"
_authorizations_map="$_d,$response
_authorizations_map="$_d,$response
#$_authz_url
$_authorizations_map"
$_authorizations_map"
done
done
_debug2 _authorizations_map "$_authorizations_map"
_debug2 _authorizations_map "$_authorizations_map"
_index=0
_index=0
...
@@ -4656,7 +4658,8 @@ $_authorizations_map"
...
@@ -4656,7 +4658,8 @@ $_authorizations_map"
_on_issue_err "$_post_hook"
_on_issue_err "$_post_hook"
return 1
return 1
fi
fi
_authz_url="$(echo "$_candidates" | sed "s/$_idn_d,//" | _egrep_o "#.*" | sed "s/^#//")"
_debug _authz_url "$_authz_url"
if [ -z "$thumbprint" ]; then
if [ -z "$thumbprint" ]; then
thumbprint="$(__calc_account_thumbprint)"
thumbprint="$(__calc_account_thumbprint)"
fi
fi
...
@@ -4708,7 +4711,7 @@ $_authorizations_map"
...
@@ -4708,7 +4711,7 @@ $_authorizations_map"
_debug keyauthorization "$keyauthorization"
_debug keyauthorization "$keyauthorization"
fi
fi
dvlist="$d$sep$keyauthorization$sep$uri$sep$vtype$sep$_currentRoot"
dvlist="$d$sep$keyauthorization$sep$uri$sep$vtype$sep$_currentRoot
$sep$_authz_url
"
_debug dvlist "$dvlist"
_debug dvlist "$dvlist"
vlist="$vlist$dvlist$dvsep"
vlist="$vlist$dvlist$dvsep"
...
@@ -4725,6 +4728,7 @@ $_authorizations_map"
...
@@ -4725,6 +4728,7 @@ $_authorizations_map"
keyauthorization=$(echo "$ventry" | cut -d "$sep" -f 2)
keyauthorization=$(echo "$ventry" | cut -d "$sep" -f 2)
vtype=$(echo "$ventry" | cut -d "$sep" -f 4)
vtype=$(echo "$ventry" | cut -d "$sep" -f 4)
_currentRoot=$(echo "$ventry" | cut -d "$sep" -f 5)
_currentRoot=$(echo "$ventry" | cut -d "$sep" -f 5)
_authz_url=$(echo "$ventry" | cut -d "$sep" -f 6)
_debug d "$d"
_debug d "$d"
if [ "$keyauthorization" = "$STATE_VERIFIED" ]; then
if [ "$keyauthorization" = "$STATE_VERIFIED" ]; then
_debug "$d is already verified, skip $vtype."
_debug "$d is already verified, skip $vtype."
...
@@ -4850,7 +4854,7 @@ $_authorizations_map"
...
@@ -4850,7 +4854,7 @@ $_authorizations_map"
uri=$(echo "$ventry" | cut -d "$sep" -f 3)
uri=$(echo "$ventry" | cut -d "$sep" -f 3)
vtype=$(echo "$ventry" | cut -d "$sep" -f 4)
vtype=$(echo "$ventry" | cut -d "$sep" -f 4)
_currentRoot=$(echo "$ventry" | cut -d "$sep" -f 5)
_currentRoot=$(echo "$ventry" | cut -d "$sep" -f 5)
_authz_url=$(echo "$ventry" | cut -d "$sep" -f 6)
if [ "$keyauthorization" = "$STATE_VERIFIED" ]; then
if [ "$keyauthorization" = "$STATE_VERIFIED" ]; then
_info "$d is already verified, skip $vtype."
_info "$d is already verified, skip $vtype."
continue
continue
...
@@ -4860,6 +4864,7 @@ $_authorizations_map"
...
@@ -4860,6 +4864,7 @@ $_authorizations_map"
_debug "d" "$d"
_debug "d" "$d"
_debug "keyauthorization" "$keyauthorization"
_debug "keyauthorization" "$keyauthorization"
_debug "uri" "$uri"
_debug "uri" "$uri"
_debug "_authz_url" "$_authz_url"
removelevel=""
removelevel=""
token="$(printf "%s" "$keyauthorization" | cut -d '.' -f 1)"
token="$(printf "%s" "$keyauthorization" | cut -d '.' -f 1)"
...
@@ -4967,6 +4972,7 @@ $_authorizations_map"
...
@@ -4967,6 +4972,7 @@ $_authorizations_map"
MAX_RETRY_TIMES=30
MAX_RETRY_TIMES=30
fi
fi
_debug "Lets check the status of the authz"
while true; do
while true; do
waittimes=$(_math "$waittimes" + 1)
waittimes=$(_math "$waittimes" + 1)
if [ "$waittimes" -ge "$MAX_RETRY_TIMES" ]; then
if [ "$waittimes" -ge "$MAX_RETRY_TIMES" ]; then
...
@@ -5029,7 +5035,7 @@ $_authorizations_map"
...
@@ -5029,7 +5035,7 @@ $_authorizations_map"
_sleep 2
_sleep 2
_debug "checking"
_debug "checking"
_send_signed_request "$ur
i
"
_send_signed_request "$
_authz_
ur
l
"
if [ "$?" != "0" ]; then
if [ "$?" != "0" ]; then
_err "$d:Verify error:$response"
_err "$d:Verify error:$response"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment