cURL / Mailing Lists / curl-library / Single Mail

curl-library

Problem with CURLOPT_SSL_VERIFYHOST on OSX

From: Jeroen Ooms <jeroen.ooms_at_stat.ucla.edu>
Date: Sat, 28 Mar 2015 16:43:45 -0700

In my client I disabled all SSL verification using:

 curl_easy_setopt(handle, CURLOPT_SSL_VERIFYHOST, 0L);

However for some servers this actually results in an error. For
example on OSX 10.10, this works:

> curl https://media.mongodb.org/zips.json

But this fails:

> curl --insecure https://media.mongodb.org/zips.json
curl: (35) SSL peer handshake failed, the server most likely requires
a client certificate to connect
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2015-03-29