cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Unable to verify server certificate

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 5 Aug 2008 23:38:32 +0200 (CEST)

On Tue, 5 Aug 2008, Salgar, Gowtam wrote:

> I need to connect to a secure website which is https based. I have to
> validate the certificate of the site before connecting.
>
> I trying opening the site, exporting the certificate from IE to .cer format
> and then use openssl to convert it to .pem as CURL supports only ..pem
> format only.

That's not what you need or want to do. When you _verify_ a remote
certificate, you need a ca cert bundle not a copy of the server's certificate.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2008-08-05