【发布时间】:2022-02-05 03:44:33
【问题描述】:
我使用服务器端加密和客户提供的密钥 (SSE-C) 上传了加密对象。 是否可以在 AWS S3 中使用预签名 URL 下载对象?
我试过这样
GeneratePresignedUrlRequest generatePresignedUrlRequest1 = new GeneratePresignedUrlRequest("bucketname", "objectpath")
.withMethod(HttpMethod.GET)
.withSSECustomerKey(new SSECustomerKey("base64mykey"))
.withExpiration(new Date( System.currentTimeMillis() + (60 * 60 * 1000)));
链接已生成,但在浏览器中访问时出现此错误The request signature we calculated does not match the signature you provided. Check your key and signing method. 是否有解决方案?
【问题讨论】:
标签: java amazon-web-services amazon-s3 download