SignatureDoesNotMatch-Amazon S3 API [英] SignatureDoesNotMatch - Amazon S3 API

查看:1062
本文介绍了SignatureDoesNotMatch-Amazon S3 API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为Amazon S3和CloudFront使用PHP类-链接。但是,当我尝试将文件上传到存储桶时,出现以下错误:

I am using a PHP class for Amazon S3 and CloudFront - Link. But when I try to upload a file into a bucket, I get this error:


[SignatureDoesNotMatch]我们计算出的请求签名不匹配您提供的签名。检查您的密钥和签名方法。

[SignatureDoesNotMatch] The request signature we calculated does not match the signature you provided. Check your key and signing method.

如何解决?

谢谢。

推荐答案

注册Amazon时,您可以为自己创建一个密钥对(Amazon称这些访问密钥ID和密钥访问密钥)。

When you sign up for Amazon, you can create yourself a key pair (Amazon calls those access key ID and secret access key).

这两个用于签署对Amazon网络服务的请求。 Amazon重新计算签名,并比较签名是否与您请求中包含的签名相匹配。这样,秘密访问密钥就不需要通过网络传输了。

Those two are used to sign requests to Amazon's webservices. Amazon re-calculates the signature and compares if it matches the one that was contained in your request. That way the secret access key never needs to be transmitted over the network.

如果您收到签名不匹配,则很可能是您使用了错误的秘密访问密钥。您能否再次检查访问密钥和秘密访问密钥以确保它们正确无误?

If you get "Signature does not match", it's highly likely you used a wrong secret access key. Can you double-check access key and secret access key to make sure they're correct?

这篇关于SignatureDoesNotMatch-Amazon S3 API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆