Skip to content

Instantly share code, notes, and snippets.



Created Mar 15, 2021
What would you like to do?
Upload a file to B2 Cloud Storage using SSE-C (customer managed key)

Generate key

dd if=/dev/random of=keyfile count=1 bs=32

Upload file

Endpoint is found in the bucket details via console.

aws --profile=b2 s3 \
  cp <src> s3://<bucket>/ \
  --sse-c=AES256 --sse-c-key=fileb://keyfile \
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment