-
- Notifications
You must be signed in to change notification settings - Fork 914
Open
Description
I liked the idea of server side encryption with my keys, so I tried
#!/bin/sh -ex # # key=$(echo -n "key" | base64) key_md5=$(echo -n "key" | md5sum | cut -b 1-32 | base64) s3cmd \ --add-header=x-amz-server-side-encryption-customer-algorithm:AES256 \ --add-header=x-amz-server-side-encryptiony:"$key" \ --add-header=x-amz-server-side-encryption-customer-key-MD5:"$key_md5" \ $@but I keep getting
ERROR: S3 error: 403 (SignatureDoesNotMatch): The request signature we calculated does not match the signature you provided. Check your key and signing method.
Any ideas?
Example data values:
base64 of "key": a2V5
base64 of md5 of "key": M2M2ZTBiOGE5YzE1MjI0YTgyMjhiOWE5OGNhMTUzMWQK
Metadata
Metadata
Assignees
Labels
No labels