Amazon S3上wamp localhost的SSL错误 [英] Amazon S3 on wamp localhost SSL error

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

问题描述

我尝试在我的localhost上的PHP Amazon S3测试,但仍然得到相同的错误:

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


致命错误:未捕获异常'cURL_Exception',消息'cURL
resource:Resource id#69; cURL错误:SSL证书问题,验证
证书的CA证书是OK。详细信息:错误:14090086:SSL
例程:SSL3_GET_SERVER_CERTIFICATE:证书验证失败(cURL
错误代码60)。请参见 http://curl.haxx.se/libcurl/c/libcurl-errors。 html
关于错误代码的解释。'in
C:\wamp\www\mysite\application\libraries\awspic\lib\requestcore\ requestcore.class.php:829
堆栈跟踪:#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

C:\wamp\www\mysite\application\libraries\awsphp\lib\requestcore\requestcore.class。 php
on line 829

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

测试代码:

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

我已将AWS SDK正确安装到php文件,并在本地服务器上启用了CURL和SSL。我能做什么使这项工作?我在网上找不到任何帮助。我使用wamp。

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.

推荐答案


  1. 获取此文件,并将其保存到您的硬盘驱动器。 在php.ini中的configuration.php#ini.curl.cainforel =noreferrer> curl.cainfo 以及步骤中下载的文件的完整路径1。

  2. 重新启动Apache。

  1. Get this file and save it to your hard drive. Call it cacert.pem.
  2. Configure curl.cainfo in php.ini with the full path to the file downloaded in step 1.
  3. Restart Apache.

要找出为什么修复它,您需要的所有信息都可以在上面的链接中找到。

I'll leave it as an exercise for the reader to find out why this fixes it, all the information you need can be found in the links above.

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

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