cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: How to use curl with nss supported?

From: xufeng zhang <xufeng.zhang_at_windriver.com>
Date: Tue, 14 Dec 2010 16:32:53 +0800

On 12/14/2010 04:19 PM, Kamil Dudka wrote:
> On Tuesday 14 December 2010 04:15:34 xufeng zhang wrote:
>
>> I got a cacert.pem file from http://curl.haxx.se/docs/caextract.html,
>> still can't work:
>> $ curl --cacert cacert.pem -v https://bugzilla.mozilla.org
>> * About to connect() to bugzilla.mozilla.org port 443 (#0)
>> * Trying 63.245.209.72... connected
>> * Connected to bugzilla.mozilla.org (63.245.209.72) port 443 (#0)
>> * Initializing NSS with certpath: /etc/pki/nssdb
>> * CAfile: cacert.pem
>> CApath: none
>> * Remote Certificate has expired.
>> * NSS error -8181
>>
> 8181 is SEC_ERROR_EXPIRED_CERTIFICATE Peer's certificate has expired.
>
> Are your system date and time zone set properly?
>

Oh, got it! it works! I forgot to set the system time in this embedded
system.
Thanks very very much, Kamil.

Thanks,
Xufeng Zhang
> Kamil
>
>

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