开发者

Facebook PHP SDK SSL ERROR

I have a SSL issue when I use the Facebook PHP SDK. I got this error message:

ERROR SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

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:

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_开发者_JAVA百科VERIFYHOST => 2

);

Some one knows how can I eliminate this error?

Best, Flavio


Change the VERIFYHOST option to:

CURLOPT_SSL_VERIFYHOST => 0

This'll disable the verification process.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜