[英]Facebook PHP SDK SSL ERROR
I have a SSL issue when I use the Facebook PHP SDK. 使用Facebook PHP SDK时遇到SSL问题。 I got this error message:
我收到此错误消息:
ERROR SSL certificate problem, verify that the CA cert is OK.
错误SSL证书问题,请验证CA证书是否正确。 Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
详细信息:错误:14090086:SSL例程:SSL3_GET_SERVER_CERTIFICATE:证书验证失败
I already got some sugestion from other posts and include some params to my curl. 我已经从其他帖子中得到了一些建议,并为我的卷发添加了一些参数。 But I still getting the error:
但是我仍然收到错误:
The code of mu curl is this: mu curl的代码是这样的:
public static $CURL_OPTS = array(
CURLOPT_CONNECTTIMEOUT => 10,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 60,
CURLOPT_USERAGENT => 'facebook-php-3.1',
CURLOPT_SSL_VERIFYPEER => false,
CURLOPT_SSL_VERIFYHOST => 2
); );
Some one knows how can I eliminate this error? 有人知道如何消除此错误?
Best, Flavio 最好,弗拉维奥
Change the VERIFYHOST option to: 将VERIFYHOST选项更改为:
CURLOPT_SSL_VERIFYHOST => 0
This'll disable the verification process. 这将禁用验证过程。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.