SES AWS 错误代码:SignatureDoesNotMatch,状态代码:403 [英] SES AWS Error Code: SignatureDoesNotMatch, Status Code: 403

查看:48
本文介绍了SES AWS 错误代码:SignatureDoesNotMatch,状态代码:403的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在尝试通过 Amazon SES 发送邮件时收到 AWS 错误代码:SignatureDoesNotMatch,状态代码:403.

I'm getting a AWS Error Code: SignatureDoesNotMatch, Status Code: 403 when trying to send a mail through Amazon SES.

我已确认我使用的是通过 https://console.aws 创建的正确凭据.amazon.com/iam/home?#users 并且错误仍然存​​在.

I have confirmed that I am using the correct credentials which I created via https://console.aws.amazon.com/iam/home?#users and the error still persists.

我假设我在 iam/home 上创建的凭据实际上是全局的,但我不知道我做错了什么.整个错误是:

I assume the credentials I've created on the iam/home are in fact global but I do not know what I am doing wrong further. The entire error is:

AWS 错误代码:SignatureDoesNotMatch,状态代码:403,AWS 请求ID:xxx,AWS 错误类型:客户端,AWS 错误消息:签名过期:20140314T031111Z 现在早于 20140317T15116Z (20140317T151111Z- 5 分钟),用户代理:aws-sdk-php2/2.5.3 Guzzle/3.8.1 curl/7.22.0 PHP/5.3.10-1ubuntu3.10 投入/url/Vendor/Aws/Common/Exception/NamespaceExceptionFactory.php 上线91

AWS Error Code: SignatureDoesNotMatch, Status Code: 403, AWS Request ID: xxx, AWS Error Type: client, AWS Error Message: Signature expired: 20140314T031111Z is now earlier than 20140317T15116Z (20140317T151111Z - 5 min.), User-Agent: aws-sdk-php2/2.5.3 Guzzle/3.8.1 curl/7.22.0 PHP/5.3.10-1ubuntu3.10 thrown in /url/Vendor/Aws/Common/Exception/NamespaceExceptionFactory.php on line 91

实际代码是我从中提取的代码:http://docs.aws.amazon.com/aws-sdk-php/latest/class-Aws.Ses.SesClient.html#_sendEmail

The actual code is code I pulled from: http://docs.aws.amazon.com/aws-sdk-php/latest/class-Aws.Ses.SesClient.html#_sendEmail

我正在本地环境中触发此脚本.

I am firing this script from my local environment.

我在哪里可以找到有效的凭据?

Where would I be able to find credentials that would work?

推荐答案

这看起来像是时钟偏差问题.您发送请求的机器的时间与 Amazon SES 服务器的时间相差太大.这导致您的签名无效.您的凭据可能没问题.更正您机器的时钟或与 NTP 服务器同步.

This looks like a clock skew issue. The time of the machine you are sending the request from is too different from the Amazon SES server's time. This is causing your signature to be invalid. Your credentials are probably fine. Correct your machine's clock or sync up with an NTP server.

这篇关于SES AWS 错误代码:SignatureDoesNotMatch,状态代码:403的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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