cURL / Mailing Lists / curl-users / Single Mail

curl-users

Verifying self signed certificates

From: Shivam Patel <shivam.unleashed_at_gmail.com>
Date: Fri, 20 Jan 2012 13:08:26 -0500

Hi All,
I need to verify the server certificate for a server that sends a self
signed certificate. I am using the curl command line tool.
I read http://curl.haxx.se/mail/archive-2011-02/0049.html in which Daniel
says there is no way we can do it over command line (or so I inferred).

Can someone tell me a way I can verify this certificate. As mentioned in
http://turboflash.wordpress.com/2009/06/23/curl-adding-installing-trusting-new-self-signed-certificate/
, I
added the PEM key to my CA cert store, but even that doesn't work for me.

I reckon the problem is that I need to add the CA certificate to the
certificate store (or for --cacert option) and not the Server Certificate.
For self signed certificate, there is no CA - does that mean that the
Certificate itself can be deemed as the CA certificate ?

Any help will be appreciated !

Thanks - Shivam

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-01-20