Hi All,
I am trying to connect to an API that requires the following:
- The date the request was created in UTC, on the format "yyyy-MM-dd HH:mm:ss
- The access key from the API key set.
- An HMAC signature created using the secret key from the API key set
- Create a string by concatenating the following:
- The date as specified in the header.
- The access key.
- The HTTP method in upper case.
- The path (including query string) to the web service being called. Please note, only the path, not the scheme or hostname.
- Create a signature with the secret key, taking the concatenated string as input, using the “HmacSHA1” algorithm.
- Base64 encode the signature.
So I have done all the above, however I am not sure if my SHA-1 digest with Base 64 is correct. The error returned: Invalid signature.
Can anyone see if I have done this correctly?:
In my screenshot input final contains date in UTC, on the format "yyyy-MM-dd HH:mm:ss + Accesskey + HTTP method + path
The issue is that I can not see the value of the result for the SHA1 digest with Base 64 so I can not compare with other online calculators if the value is correct