At 2010-12-09 15:47:21,"张绪峰" <[email protected]> wrote:
Hi All,

I have some problems with curl+nss usage.

Version
--------------
$ curl -V
curl 7.20.0 (i686-target-linux-gnu) libcurl/7.20.0 NSS/3.12.4.5 zlib/1.2.5 
libidn/0.6.5
Protocols: dict file ftp ftps http https imap imaps pop3 pop3s rtsp smtp smtps 
telnet tftp
Features: IDN IPv6 Largefile SSL libz
---------------
NSS database is in '/etc/pki/nssdb' directory.
When I run certutil, the output is:
$ certutil -L -d /etc/pki/nssdb/
   Certificate Nickname                                         Trust Attributes
                                                                           
SSL,S/MIME,JAR/XPI
I don't know why there is no nickname output.
I also find there is a Makefile in '/usr/lib/ssl/certs' directory, which can be 
used to generate PEM format CA.
So I run 'make cacert.pem' and it is created.
Lastly when I using curl with this CA:
$ curl --cacert ./cacert.pem -X GET https://bugzilla.redhat.com

Maybe I have used the wrong command, run it as below:
$ curl --cert ./cacert.pem -X GET https://bugzilla.redhat.com
   curl: (77) Problem with the SSL CA cert (path? access rights?)

Also fails, need help.

Thanks,
Xufeng Zhang



   Segmentation fault

So I'm not sure about how to use curl with nss support efficiently.
Thanks in advance!


Thanks,
Xufeng Zhang





网易163/126邮箱百分百兼容iphone ipad邮件收发
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Reply via email to