AWS GET Object reference
Reproduce AWS's published GET Object signature with an empty body and a signed Range header.
The canonical request hash and signature match AWS's published GET example. Keep the blank query line and the blank line after canonical headers.
Inputs and expected values
- Select Load AWS example in the calculator. It fills this request and the public example credentials.
- Keep the signing time at 20130524T000000Z, the body empty, and Payload signing set to SHA-256 of this body.
- Select Calculate signature, then compare the canonical request, hash in the string to sign, and signature below.
- Request URL
https://examplebucket.s3.amazonaws.com/test.txt- Signed request header
Range: bytes=0-9- Signing time
20130524T000000Z- Canonical request
GET /test.txt host:examplebucket.s3.amazonaws.com range:bytes=0-9 x-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 x-amz-date:20130524T000000Z host;range;x-amz-content-sha256;x-amz-date e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855- Canonical request SHA-256
7344ae5b7ee6c3e7e6b0fe0640412a37625d1fbfff95c48bbb2dc43964946972- String to sign
AWS4-HMAC-SHA256 20130524T000000Z 20130524/us-east-1/s3/aws4_request 7344ae5b7ee6c3e7e6b0fe0640412a37625d1fbfff95c48bbb2dc43964946972- Expected signature
f0e8bdb87c964420e857bd35b5d6ed310bd44f0170aba48dd91039c6036bdb41