开发者

Facebook PHP SDK SSL ERROR

开发者 https://www.devze.com 2023-04-04 02:21 出处:网络
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_CERTI

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

精彩评论

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