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 réponse
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
répondu il y a un an

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions