Skip to content

Trying SSE-C #352

@ahnkle

Description

@ahnkle

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions