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 回答
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
已回答 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则