cURL / Mailing Lists / curl-users / Single Mail


Re: Disable curl CURLOPT_SSL_VERIFYHOST from command line

From: Daniel Stenberg <>
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.

List admin:
Received on 2010-07-21