亚马逊MarketplaceWebServiceOrders请求突然失败,PHP curl给SSL CA证书错误? [英] Amazon MarketplaceWebServiceOrders requests suddenly failing, PHP curl giving SSL CA cert error?

查看:1439
本文介绍了亚马逊MarketplaceWebServiceOrders请求突然失败,PHP curl给SSL CA证书错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从星期天凌晨4点开始,我们突然从 Marketplace Web服务订单PHP5库 MarketplaceWebServiceOrders / Client.php code>脚本:

Starting at 4am Sunday, we suddenly started seeing errors from curl, from the Marketplace Web Service Orders PHP5 Library MarketplaceWebServiceOrders/Client.php script:

Caught Exception: Internal Error
Response Status Code: 0
Error Code: 
Error Type: 
Request ID: 
XML: 
ResponseHeaderMetadata: RequestId: , ResponseContext: , Timestamp: 

实际卷曲错误号为 77 ,消息为:

The actual curl error number is 77, with the message being:

Problem with the SSL CA cert (path? access rights?)


有趣的是,当我用 curl_setopt($ ch,CURLOPT_SSL_VERIFYPEER,false); 测试时,我仍然得到相同的错误。使用以下选项时,我也得到相同的错误:

Interestingly, when I test with curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); I still get the same error. I also get the same error when using the following options:

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
curl_setopt($ch, CURLOPT_CAPATH, '/etc/pki/tls/certs/ca-bundle.crt');

这让我奇怪,这只是突然停止工作这个周末。我们没有更改代码,也没有服务器在当时运行任何更新。如何解决这个问题?

It strikes me odd that this just suddenly stopped working this weekend. We haven't changed the code, nor has the server had any updates run at that time. How can I go about fixing this?

推荐答案

我们今天早上有同样的问题。它似乎与上周末的bash更新有关。

We had the exact same problem this morning. It seems it has something to do with the bash update from last weekend.

我们通过重新启动apache解决了这个问题。

We fixed the problem by simply restarting apache.

编辑:

有关bash更新的详细信息,您还可以检查 http://www.troyhunt.com/2014/09/everything-you-need-to-know-about.html a>

For more information about the bash update you can also check http://www.troyhunt.com/2014/09/everything-you-need-to-know-about.html

这篇关于亚马逊MarketplaceWebServiceOrders请求突然失败,PHP curl给SSL CA证书错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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