cURL / Mailing Lists / curl-users / Single Mail

curl-users

Making curl not use default certificates

From: Alex Bligh <alex_at_alex.org.uk>
Date: Fri, 13 Dec 2013 15:31:14 +0000

I am trying to make curl NOT check the default certificates, and ONLY use the CA cert I specify.

This works as expected:
$ curl https://www.google.com
<HTML>...</HTML>

However this (in my book) should fail:
$ curl --cacert tmp/myca.crt https://www.google.com
<HTML>.../HTML>

but it does not.

What have I missed here?

This is on curl 7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3

-- 
Alex Bligh
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2013-12-13