cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: HTTPS returns nothing

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 5 Mar 2003 23:35:12 +0100 (CET)

On Wed, 5 Mar 2003, WL Reyes- Bruce wrote:

> Thanks for the quick response. I have added a check for the response
> from curl_easy_perform and it returns a 51, which I guess means:
> CURLE_SSL_PEER_CERTIFICATE, /* 51 - peer's certificate wasn't ok */
>
> Also I have setup the VERBOSE option which I did not have before and this
> is what I get:

Try setting CURLOPT_SSL_VERIFYHOST to 1 or even 0 as a test. That's what the
curl tool does when -k/--insecure is used.

> I also tried setting 'curl_easy_setopt(curl, CURLOPT_CAINFO,"/tmp/ca.pem"),
> where ca.pem is a server certificate file for the server that I am pointing
> to.

That contradicts the use of CURLOPT_SSL_VERIFYPEER set to FALSE...

> I only want HTTPS without client certificates.

CURLOPT_CAINFO doesn't affect client certificates, it is used to set a CA
cert to verify the server's certificate against.

-- 
 Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs.
-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
Received on 2003-03-05