NSS:未找到客户端证书(未指定昵称)? [英] NSS: client certificate not found (nickname not specified)?

查看:2967
本文介绍了NSS:未找到客户端证书(未指定昵称)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图通过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:


如果curl是针对NSS SSL库构建的,那么这个选项[--cert]
可以告诉curl要在环境变量SSL_DIR(或
默认/ etc / pki / nssdb)定义的
NSS数据库中使用的证书的昵称。如果NSS PEM PKCS#11模块(lib-
nsspem.so)可用,则可以加载PEM文件。 如果您
想要使用当前目录中的文件,请在前面加上
的前缀./,以避免与昵称混淆。

(强调我)

或者,导入NSS证书数据库的一些说明这里,虽然我没有使用它们:
http://rcritten.fedorapeople.org/nss_compat_ossl.html

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:未找到客户端证书(未指定昵称)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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