PHP SSL CA 证书问题(路径?访问权限?) [英] PHP Problem with the SSL CA cert (path? access rights?)

查看:36
本文介绍了PHP SSL CA 证书问题(路径?访问权限?)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到此错误:

SSL CA 证书问题(路径?访问权限?)"

"Problem with the SSL CA cert (path? access rights?)"

做的时候:

$curl = curl_init('https://example.com' . ($method == 'GET' && $params ? '?' . $params : ''));

curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0); 
$response = curl_exec($curl);

print curl_error($curl)

在另一台服务器上运行正常.

Works ok on another server.

SSL 正在使用 NSS.PHP 5.3.6

The SSL is using NSS. PHP 5.3.6

推荐答案

通过重命名 nssdb 使其工作:

got it working by renaming the nssdb:

mv /etc/pki/nssdb /etc/pki/nssdb.old

这篇关于PHP SSL CA 证书问题(路径?访问权限?)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆