From: Alexander Kulumbeg Date: Thu, 4 Feb 2021 14:32:51 +0000 (+0100) Subject: Changing the _hmac call into Neil's suggestion X-Git-Tag: 2.8.9^2~6^2~3^2~55 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=2eda03f5dea919930d156c2cc8d6e976d173ec78;p=mirror_acme.sh.git Changing the _hmac call into Neil's suggestion --- diff --git a/dnsapi/dns_websupport.sh b/dnsapi/dns_websupport.sh index 922e6819..06ed9c78 100644 --- a/dnsapi/dns_websupport.sh +++ b/dnsapi/dns_websupport.sh @@ -160,7 +160,7 @@ _ws_rest() { timestamp=$(_time) datez="$(_utc_date | sed "s/ /T/" | sed "s/$/+0000/")" canonical_request="${me} ${pa} ${timestamp}" - signature_hash=$(printf "%s" "$canonical_request" | _hmac sha1 "$(printf "%s" "$WS_ApiSecret" | _hex_dump | tr -d " ")" hex) + signature_hash=$(printf "%s" "$canonical_request" | _hmac sha1 "$WS_ApiSecret" | _hex_dump | tr -d " ") basicauth="$(printf "%s:%s" "$WS_ApiKey" "$signature_hash" | _base64)" _debug2 method "$me"