问题描述
我试图通过PHP curl在Centos 6系统上访问第三方服务,该系统使用curl和libcurl,而不是OpenSSL编译NSS。
I'm trying to access a third-party service via PHP curl on a Centos 6 system which comes with curl and libcurl compiled against NSS instead of OpenSSL.
这是对我造成问题,每次我尝试访问服务我得到这个错误 NSS:客户端证书未找到(昵称未指定)
。
This is causing problems for me, every time I try to access the service I get this error NSS: client certificate not found (nickname not specified)
.
我的理解是,我需要在NSS数据库中安装证书。
My understanding is that I need to install the certificates in the NSS database.
我正在寻找如何要记住,我需要这个来处理从Nginx服务器调用的PHP curl函数)
I'm looking for step by step instructions on how to do this (keep in mind, I need this to work with PHP curl functions called from Nginx server)
感谢
推荐答案
尝试使用./作为前缀的证书文件名,或使用完整路径。从curl的manpage:
Try prefixing the certificate filename with "./", or using the full path. From the curl manpage:
(强调我)
或者,导入NSS证书数据库的一些说明这里,虽然我没有使用它们:
Alternatively, some instructions for importing into the NSS certificate database are here, although I have not used them:http://rcritten.fedorapeople.org/nss_compat_ossl.html
这篇关于NSS:未找到客户端证书(未指定昵称)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!