Answer the question
In order to leave comments, you need to log in
How to tighten encryption on S3 using a client key in python?
I have a test case of uploading and downloading a file: pastebin.com/wXNnYtm1
Based on the documentation, I added headers with the key, its md5, and the algorithm:
header = {
"x-amz-server-side-encryption-customer-algorithm" :
"AES256",
"x-amz-server-side-encryption-customer-key" :
"MAAxAHQAZQBzAHQASwBlAHkAVABvAFMAUwBFAEMAIQA=",
"x-amz-server-side-encryption-customer-key-MD5" :
"fUgCZDDh6bfEMuP2bN38mg=="
}
reply: 'HTTP/1.1 403 Forbidden\r\n'
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question