首页 文章

eBay API PHP SDK获取cURL错误60:SSL证书

提问于
浏览
-2

我正在使用eBay API PHP SDK并在Win 7中的本地WAMP服务器上运行时出现此错误:

致命错误:未捕获异常'GuzzleHttp \ Exception \ RequestException',消息'cURL错误60:SSL证书问题:无法获取本地颁发者证书(请参阅http://curl.haxx.se/libcurl/c/libcurl-errors . html)'在C:\ vendor \ guzzlehttp \ guzzle \ src \ Handler \ CurlFactory.php第187行(!)GuzzleHttp \ Exception \ RequestException:cURL错误60:SSL证书问题:无法获得本地颁发者证书(参见http:第187行的C:\ vendor \ guzzlehttp \ guzzle \ src \ Handler \ CurlFactory.php中的//curl.haxx.se/libcurl/c/libcurl-errors.html)

图片:

error pic

2 回答

  • 0

    您需要检查证书和系统CURL版本 . 我在我的机器上遇到了同样的问题并更新了CURL lib(因为我使用macports很容易:

    sudo port selfupdate
    sudo port upgrade curl
    

    如果您使用的是不同的平台或包管理器,则需要进行调查

  • 0

    你必须在php.ini中设置并重启服务器 .

    openssl.cafile=C:\path\to\cacert.pem
    

    从这里下载https://gist.github.com/VersatilityWerks/5719158/download

相关问题