Skip to content
This repository has been archived by the owner on Nov 19, 2018. It is now read-only.

Getting 403 because of signature doesn't match #69

Closed
dhanababum opened this issue Dec 7, 2017 · 1 comment
Closed

Getting 403 because of signature doesn't match #69

dhanababum opened this issue Dec 7, 2017 · 1 comment

Comments

@dhanababum
Copy link

Hi, I am using fineuploader to uploade multiple images to S3, But I am getting an issue Signature doesn't match. And I found amazon s3 using version 4 for signature http://docs.aws.amazon.com/AmazonS3/latest/API/images/sigV4-post.png

Amazon s3 people given an example for version 4 http://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-post-example.html. So I tried this example to regenerate exact same signature what they have already, But I am unable to regenerate it.

I have used django example from this repo, but this example outdated, And I solved many issues. Finally I stuck with Signature mismatch.

Code:


DateKey = hmac.new(b'AWS4'+b'wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY', b'20151229', hashlib.sha256).digest()

DateRegionKey = hmac.new(DateKey, b'us-east-1', hashlib.sha256).digest()

DateRegionServiceKey = hmac.new(DateRegionKey, b's3', hashlib.sha256).digest()

SigningKey = hmac.new(DateRegionServiceKey, b'aws4_request', hashlib.sha256).digest()

signature = hmac.new(policy, SigningKey, hashlib.sha256).digest()

binascii.hexlify(signature)

Please help me

@rnicholus
Copy link
Member

seems close enough to be a duplicate of #51

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants