【发布时间】:2016-05-31 00:20:37
【问题描述】:
我无法将 S3 对象上传到 S3 存储桶。我使用了以下命令:
aws s3api put-object --bucket=opsops --key=Cloudformation_upload.csv --body=Cloudformation.csv --sse-customer-algorithm=AES256 --sse-customer-key=MTIzNDU2Nzg5MGFiY2Rl --customer-key -md5=NTgwMWMzMzJiNGU1YmE5YzBhMjk3ZDYwYmI1MWNjNzI="
但是当我上传对象时出现这个错误:
注意:Customer-key 和 customer-key-MD5 值是用 64 位值编码的。请帮我解决这个问题。
调用 PutObject 操作时发生客户端错误(InvalidArgument):计算的密钥 MD5 哈希与提供的哈希不匹配
【问题讨论】:
-
我为此执行的命令... 命令是“aws s3api put-object --bucket=opsops --key=Cloudformation_upload.csv --body=Cloudformation.csv --sse-customer-算法=AES256 --sse-customer-key=MTIzNDU2Nzg5MGFiY2Rl --customer-key-md5=NTgwMWMzMzJiNGU1YmE5YzBhMjk3ZDYwYmI1MWNjNzI="
标签: amazon-web-services encryption amazon-s3 aws-cli