cURL / Mailing Lists / curl-library / Single Mail


Re: SSL Certificate Verification

From: Henrik Storner <>
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 <> 
This email is sponsored by: Giveback Program. hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here:
Received on 2003-10-13