cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-users Mailing List Archives

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

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET