AWS4 规范请求和待签名字符串示例
此规范请求通过修改 boto3 源代码提取。
aws4_canonical_request.txt
HEAD
/my-bucket/folder/example-object.txt
host:minio.mydomain.com
x-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
x-amz-date:20230608T220550Z
host;x-amz-content-sha256;x-amz-date
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855对应的待签名字符串是
aws4_string_to_sign.txt
AWS4-HMAC-SHA256
20230608T220550Z
20230608/us-east-1/s3/aws4_request
e2d4be537009ba634ecc7a2717df2d74e612c63d31cf4bd8cb94eaf43be3665b注意待签名字符串的校验和不匹配,因为规范请求的某些细节已被修改。
Check out similar posts by category:
S3
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow