cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re:Re:Re: How to use curl with nss supported?

From: ÕÅÐ÷·å <seasprayer_at_126.com>
Date: Fri, 10 Dec 2010 15:20:36 +0800 (CST)

At 2010-12-10 15:13:13£¬"Daniel Stenberg" <daniel_at_haxx.se> wrote:

>On Fri, 10 Dec 2010, ÕÅÐ÷·å wrote:
>
>> I think the root cause of my problem maybe there is not a valid certificate
>> in my system, I find there is an configure option
>> "--with-ca-bundle=%{_sysconfdir}/pki/tls/certs/ca-bundle.crt" in curl.spec,
>> but I can't find ca-bundle.crt file in my system.
>
>You can get the one Firefox uses from here:
>
> http://curl.haxx.se/docs/caextract.html

Thanks for your help, I have just tried, still doesn't work.
when I run "curl --cacert cacert.pem https://bugzilla.mozilla.org", it got following output:
curl: (60) Peer certificate cannot be authenticated with known CA certificates
More details here: http://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a "bundle"
 of Certificate Authority (CA) public keys (CA certs). If the default
 bundle file isn't adequate, you can specify an alternate file
 using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
 the bundle, the certificate verification probably failed due to a
 problem with the certificate (it might be expired, or the name might
 not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
 the -k (or --insecure) option.

Thanks,
Xufeng Zhang

>
>(and please don't top-post)
>
>--
>
> / daniel.haxx.se

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-12-10