mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-25 14:41:40 +00:00
minor, output thumbprint
This commit is contained in:
parent
5d2c5b01a8
commit
339a8ad610
9
acme.sh
9
acme.sh
@ -2489,6 +2489,10 @@ __calcAccountKeyHash() {
|
|||||||
[ -f "$ACCOUNT_KEY_PATH" ] && _digest sha256 <"$ACCOUNT_KEY_PATH"
|
[ -f "$ACCOUNT_KEY_PATH" ] && _digest sha256 <"$ACCOUNT_KEY_PATH"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
__calc_account_thumbprint() {
|
||||||
|
printf "%s" "$jwk" | tr -d ' ' | _digest "sha256" | _url_replace
|
||||||
|
}
|
||||||
|
|
||||||
#keylength
|
#keylength
|
||||||
_regAccount() {
|
_regAccount() {
|
||||||
_initpath
|
_initpath
|
||||||
@ -2579,6 +2583,8 @@ _regAccount() {
|
|||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
ACCOUNT_THUMBPRINT="$(__calc_account_thumbprint)"
|
||||||
|
_info "ACCOUNT_THUMBPRINT" "$ACCOUNT_THUMBPRINT"
|
||||||
return 0
|
return 0
|
||||||
done
|
done
|
||||||
|
|
||||||
@ -2810,8 +2816,7 @@ issue() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$thumbprint" ]; then
|
if [ -z "$thumbprint" ]; then
|
||||||
accountkey_json=$(printf "%s" "$jwk" | tr -d ' ')
|
thumbprint="$(__calc_account_thumbprint)"
|
||||||
thumbprint=$(printf "%s" "$accountkey_json" | _digest "sha256" | _url_replace)
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
entry="$(printf "%s\n" "$response" | _egrep_o '[^\{]*"type":"'$vtype'"[^\}]*')"
|
entry="$(printf "%s\n" "$response" | _egrep_o '[^\{]*"type":"'$vtype'"[^\}]*')"
|
||||||
|
Loading…
Reference in New Issue
Block a user