AWS returns "Invalid Signature" when trying to get Orders

0

We have successfully validated our .NET Signature calculation function - hmacSignature.GetSignatureKey() using parameters... ("wJalrXUtnFEMI/K7MDENG+bPxRfiCYEXAMPLEKEY", "20120215", "us-east-1", "iam") However, when using our registered parameters... ("**************************************", " 20220916", "eu-west-1", "Execute-api") ...we get an InvalidSignature message.

How do we go about understanding what we are doing wrong?

1 Answer
0

At a guess, it might be that you need to use execute-api instead of Execute-api since the service name will be case sensitive.

Other than that, there are various things that could be wrong with the signature - this is probably a good place to start: https://docs.aws.amazon.com/general/latest/gr/signature-v4-troubleshooting.html

Deriving the signing key is just one step of the process, and any other issues are more likely to be with your algorithm to create the canonical request and string to sign, which will need to match the request parameters exactly. More information is available here: https://docs.aws.amazon.com/general/latest/gr/sigv4_signing.html

Ed
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions