Re: HTTPS with LIBCURL issue
Date: Tue, 12 Aug 2008 21:13:43 +0530
It is a self signed certificate the server is presenting.
I checked this option but i didn't got idea how to achieve.Can i acheive the
functionality with CURLOPT_SSL_CTX_FUNCTION ??
On Tue, Aug 12, 2008 at 7:53 PM, Karandeep Malik
> On Tue, Aug 12, 2008 at 7:25 PM, Aravinda babu <aravinda.babu_at_gmail.com>
> > Hi all,
> > When any application tries to access an https based url and suppose the
> > server presents a self signed certificate then ssl fails to authenticate
> > certificate. Hence application is unable to access the website.
> > The same url when accessed using a mozilla or some other browser then it
> > throws up a dialog warning whether to accept, reject or examine the
> > certificate. If the user choses to accept the certificate then the
> > proceeds further and connects to the page.I want to develop this type of
> > functionality using libcurl.
> > I am using libcurl 7.18.2. Is any way to get this functionality ?
> > Thanks in advance,
> > Aravind.
> Hi Arvind,
> A few checks
> 1) Does your CA authorities certifcate contains the certificate that
> the host server is presenting you ??
> 2) What is the exact error you are getting ??
> Second part of your query:-
> 1) There is a call back function in libcurl that may allow you to do
> whatever you like with the certificate presented by the host server.
> I haven't used it -> CURLOPT_SSL_CTX_FUNCTION. Probably this is what
> may help you.
> Karandeep Malik
Received on 2008-08-12