Correct call to openssl

This commit is contained in:
Zhong Lufan 2023-01-29 15:23:11 +08:00
parent 5be0482a1f
commit b5193a284c
No known key found for this signature in database
GPG Key ID: BE2B3A1E76AD7D04
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ _aliapi_signature_rpc() {
_str=$(LC_ALL=C sort <<< "${_str//&/$_newline}")
_query_str=${_str//$_newline/&}
_sign_str="$_http_method&$(_aliapi_urlencode "/")&$(_aliapi_urlencode "$_query_str")"
echo -n "$_sign_str" | openssl sha1 -hmac "$_AliAccessKeySecret&" -binary | openssl base64 -e
printf "%s" "$_sign_str" | openssl dgst -sha1 -hmac "$_AliAccessKeySecret&" -binary | openssl base64 -e
}
_aliapi_timestamp_rpc() {