想知道是否有人知道亚马逊AWS会告诉我为什么“您提供的X509证书不存在于我们的记录中。”我在使用亚马逊AWS PHP SDK时遇到了X509错误
下面是我使用的代码...
$sqs = new AmazonSQS();
$queue_url = 'my_url';
$options = array(
'MaxNumberOfMessages' => 10,
);
$resp = $sqs->receive_message($queue_url, $options);
print_r($resp);
这是我得到的回应......
[Type] => Sender
[Code] => InvalidClientTokenId
[Message] => The X509 Certificate you provided does not exist in our records.
[Detail] => CFSimpleXML Object
这里的CFCredentials阵列我使用的是内部的config.inc.php ...
'@default' => array(
'key' => 'my-key',
'secret' => 'my-secret',
'default_cache_config' => 'cache',
'certificate_authority' => FALSE
)
注意:这不建议用于直播/制作代码。 – Chad 2012-05-03 18:41:41