cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: SSL Certificate Verification

From: Henrik Storner <henrik-curl_at_hswn.dk>
Date: Mon, 13 Oct 2003 23:30:31 +0200

On Mon, Oct 13, 2003 at 06:14:59PM +0100, White, Gary [IT] wrote:

> I have succeeded in connecting to the server and perform my functionality with
> verifypeer set to false.
>
> curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, FALSE);
>
> However, when I set it to true I get the error
>
> * SSL certificate problem, verify that the CA cert is OK

Add a

  curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, FALSE);

right after the VERIFYPEER setting, and it should work.

-- 
Henrik Storner <henrik_at_hswn.dk> 
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
Received on 2003-10-13