亚马逊S3上WAMP本地主机的SSL错误 [英] Amazon S3 on wamp localhost SSL error

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

问题描述

我想在PHP的Amazon S3上测试我的本地主机,但继续得到同样的错误:

  

致命错误:未捕获的异常cURL_Exception有消息卷曲   资源:资源ID#69;卷曲的错误:SSL证书问题,请验证   该CA证书就可以了。详细信息:错误:14090086:SSL   套路:SSL3_GET_SERVER_CERTIFICATE:证书验证失败(卷曲   错误code 60)。请参阅<一href="http://curl.haxx.se/libcurl/c/libcurl-errors.html">http://curl.haxx.se/libcurl/c/libcurl-errors.html   对于C $ CS错误$的说明。在   C:\瓦帕\的www \ mysite的\程序\库\ awsphp \ lib目录\ requestcore \ requestcore.class.php:829   堆栈跟踪:#0   C:\瓦帕\的www \ mysite的\程序\库\ awsphp \ sdk.class.php(1034):   RequestCore-> send_request()#1   C:\瓦帕\的www \ mysite的\程序\库\ awsphp \ SERVICES \ sqs.class.php(250):   CFRuntime->认证(ListQueues,阵列)#2   C:\瓦帕\的www \ mysite的\程序\库\ awsphp \ SERVICES \ sqs.class.php(582):   AmazonSQS->认证(ListQueues,阵列)#3   C:\瓦帕\的www \ mysite的\程序\控制器\ uploads.php(33):   AmazonSQS-> list_queues()#4的内部功能】:Uploads-> AW3()#5   C:\瓦帕\的www \ mysite的\ SYSTEM \核心\ codeIgniter.php(359):call_user_func   在   C:\瓦帕\的www \ mysite的\程序\库\ awsphp \ lib目录\ requestcore \ requestcore.class.php   上线829

测试code:

  $ SQS =新AmazonSQS();
$响应= $ sqs-&GT; list_queues();
的var_dump($响应 - &GT; isOK());
 

我正确地安装了AWS SDK到PHP文件,使卷曲和SSL我的本地服务器上。我能做些什么,使这项工作?我找不到任何帮助在线。我使用WAMP。

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

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

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.

解决方案

  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.

这篇关于亚马逊S3上WAMP本地主机的SSL错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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