cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Disable curl CURLOPT_SSL_VERIFYHOST from command line

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 21 Jul 2010 20:20:09 +0200 (CEST)

On Wed, 21 Jul 2010, Christopher A Hotchkiss wrote:

> Is it possible to disable CURLOPT_SSL_VERIFYHOST on the command line but
> keep CURLOPT_SSL_VERIFYPEER enabled (ie not use -k)? I am using curl to
> connect to a server that will not have a consistent hostname, but it will
> always have a good certificate since we are running our own certificate
> authority.

Nope, curl only features the -k option and that disables both host name checks
and the cert check.

If you desire fancier checks, consider using a libcurl binding.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
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 2010-07-21