I’m trying to write code that reads/writes S3 Amazon buckets. So far I have managed to get the datestring accepted, but then get an error:
“The Authorization mechanism you are using is not supported. Please use AWS4-HMAC-SHA256”
Can anyone help me generate the correct signature?
Currently I use:
var hmac as string = Crypto.SHA_256(stringToSign)
var signature as string = EncodeBase64(hmac)
// Set the headers
urlConnection.RequestHeader(“Authorization”) = "AWS " + accessKey + “:” + signature
urlConnection.RequestHeader(“Date”) = dateHeader
// Send the GET request
Dim response As String = urlConnection.SendSync(“GET”, url, 30)
// Display the response
MessageBox(response)
Thank in advance for your help
6 posts - 3 participants