mirror of
https://github.com/Hill-98/aliyun-openapi-bash-sdk.git
synced 2025-10-23 02:19:33 +08:00
Use the date command to output standard ISO8601 UTC time.
This commit is contained in:
@@ -91,9 +91,9 @@ _ali_signature_rpc() {
|
|||||||
echo -n "$_sign_str" | openssl sha1 -hmac "$_AliAccessKeySecret&" -binary | openssl base64 -e
|
echo -n "$_sign_str" | openssl sha1 -hmac "$_AliAccessKeySecret&" -binary | openssl base64 -e
|
||||||
}
|
}
|
||||||
|
|
||||||
_ali_timestamp_rpc() {
|
_aliapi_timestamp_rpc() {
|
||||||
# ISO8601 UTC
|
# ISO8601 UTC
|
||||||
date -u "+%FT%TZ"
|
date -u -Iseconds
|
||||||
}
|
}
|
||||||
|
|
||||||
_ali_signature_nonce() {
|
_ali_signature_nonce() {
|
||||||
|
Reference in New Issue
Block a user