cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: HTTPS with LIBCURL issue

From: Patrick MONNERAT <pm_at_datasphere.ch>
Date: Tue, 12 Aug 2008 19:03:21 +0200

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-12