cURL 访问https失败

用curl_error函数看到错误

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

解决

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);

http://unitstep.net/blog/2009/05/05/using-curl-in-php-to-access-https-ssltls-protected-sites/

posted @ 2012-06-29 09:47  johnsonshu  阅读(661)  评论(0编辑  收藏  举报