According to the documentation, requirements for SSE-C are as follows:

–sse-c (string) Specifies server-side encryption using customer provided keys of the the object in S3. AES256 is the only valid value. If the parameter is specified but no value is provided, AES256 is used. If you provide this value, –sse-c-key must be specified as well.
–sse-c-key (string) The customer-provided encryption key to use to server-side encrypt the object in S3. If you provide this value, –sse-c must be specified as well. The key provided should not be base64 encoded.

So,generate some AES keys using openssl. You can use my keys if you don’t want to downloadopenssl:

$ openssl enc -aes-128-cbc -k secret -P

You get something like this in return when you enter the command above:

iv =72C262268CF8F6B7CB0E1F6871F9E08D

Save the key to a file or somewhere safe.

Command to upload and encrypt using SSE-C :
aws s3 cp abcd.txt s3://kms-test11 –sse-c AES256 –sse-c-key 72C262268CF8F6B7CB0E1F6871F9E08D

When you download the file with sse-c, you get an error if you try to download without providing the key. The command to download the file from s3 is:
aws s3 cp s3://kms-test11/abcd.txt . –sse-c –sse-c-key 72C262268CF8F6B7CB0E1F6871F9E08D


Encrypt a file using SSE-C:


Leave a Reply

Please Login to comment
newest oldest most voted
Notify of

Buy Prescriptions Online Review Do They Sell Trazadone Over The Counter Kamagra En Espana cialis 20mg price at walmart Cialis 12

Thank you for sharing with us, I believe this website genuinely stands out : D.