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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン