Skip to content

Commit

Permalink
Fix: Decode eab_hmac_key as single-line
Browse files Browse the repository at this point in the history
This commit resolves the issue acmesh-official#5068.
  • Loading branch information
anaoxe committed Mar 26, 2024
1 parent 2d4b900 commit 9632d19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion acme.sh
Expand Up @@ -3773,7 +3773,7 @@ _regAccount() {
eab_sign_t="$eab_protected64.$eab_payload64"
_debug3 eab_sign_t "$eab_sign_t"

key_hex="$(_durl_replace_base64 "$_eab_hmac_key" | _dbase64 multi | _hex_dump | tr -d ' ')"
key_hex="$(_durl_replace_base64 "$_eab_hmac_key" | _dbase64 | _hex_dump | tr -d ' ')"
_debug3 key_hex "$key_hex"

eab_signature=$(printf "%s" "$eab_sign_t" | _hmac sha256 $key_hex | _base64 | _url_replace)
Expand Down

0 comments on commit 9632d19

Please sign in to comment.