AWS Signature creation using PHP

Question:

I am trying to use AWS API to create a stack in AWS CloudFormation, but they return error saying “signature we calculated does not match the signature you provided

Fllowing is the code that I am using to generate the siganture

Answer:

I confirmed Frederick’s answer. You must ksort the array before hashing it.

Leave a Reply