Re: HTTPS with LIBCURL issue
Date: Wed, 13 Aug 2008 15:54:55 +0530
I tested with curlaskucert.c It is working fine.
Actually when i get error CURLE_PEER_FAILED_VERIFICATION or CURLE_SSL_CACERT
, am i able to access certinfo ? Because i set curl_easy_setopt with option
CURLINFO_CERTINFO , but i am not getting any server certificate information
I want to show user details of the server certificate so that he can proceed
with accept or reject ?
On Tue, Aug 12, 2008 at 10:33 PM, Patrick MONNERAT <pm_at_datasphere.ch> wrote:
> On Tue, 2008-08-12 at 21:44 +0530, Aravinda babu wrote:
> > Suppose the server sent a self signed cert.Now my Application has to
> > ask user whether to accept this connection, or reject connection as
> > this is self signed which cannot be authenticated by any CA. This has
> > to be done during SSL connection establishment.Hope you understand my
> > point.
> Please find attached a quick n'dirty example program that does what you
> want using the CURLOPT_SSL_VERIFYPEER option. It does not interact with
> SSL but performs a second request upon user acceptance.
> I hope it helps.
Received on 2008-08-13