亚马逊S3上WAMP本地主机SSL错误(Amazon S3 on wamp localhost SS

2019-06-26 23:51发布

I'm trying to test in PHP Amazon S3 on my localhost but keep getting the same error:

Fatal error: Uncaught exception 'cURL_Exception' with message 'cURL resource: Resource id #69; cURL error: SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed (cURL error code 60). See http://curl.haxx.se/libcurl/c/libcurl-errors.html for an explanation of error codes.' in C:\wamp\www\mysite\application\libraries\awsphp\lib\requestcore\requestcore.class.php:829 Stack trace: #0 C:\wamp\www\mysite\application\libraries\awsphp\sdk.class.php(1034): RequestCore->send_request() #1 C:\wamp\www\mysite\application\libraries\awsphp\services\sqs.class.php(250): CFRuntime->authenticate('ListQueues', Array) #2 C:\wamp\www\mysite\application\libraries\awsphp\services\sqs.class.php(582): AmazonSQS->authenticate('ListQueues', Array) #3 C:\wamp\www\mysite\application\controllers\uploads.php(33): AmazonSQS->list_queues() #4 [internal function]: Uploads->aw3() #5 C:\wamp\www\mysite\system\core\CodeIgniter.php(359): call_user_func in C:\wamp\www\mysite\application\libraries\awsphp\lib\requestcore\requestcore.class.php on line 829

Test code:

$sqs = new AmazonSQS();
$response = $sqs->list_queues();
var_dump($response->isOK());

I properly installed the AWS SDK to php files and enabled CURL and SSL on me local server. What can I do to make this work? I can't find any help online. I'm using wamp.

Answer 1:

  1. 获取该文件并将其保存到硬盘驱动器。 说它cacert.pem
  2. 配置curl.cainfo的完整路径在步骤1中下载的文件在php.ini。
  3. 重新启动Apache。

我会离开它作为一个练习,为读者找出为什么这个修复它,你需要的所有信息可以在上面的链接中找到。



Answer 2:

  1. 你是在Windows上运行?
  2. 你有没有采取运行SDK附带捆绑的SDK兼容性测试的时间?


Answer 3:

根据这个帖子 ,你不能在本地主机与亚马逊AWS工作..



文章来源: Amazon S3 on wamp localhost SSL error