curl / Mailing Lists / curl-library / Single Mail

curl-library

CURLOPT_SSL_VERIFYHOST with raw IP addresses

From: Martin Galvan via curl-library <curl-library_at_cool.haxx.se>
Date: Thu, 31 Jan 2019 11:43:55 -0300

Hi all,

My application is currently setting CURLOPT_SSL_VERIFYHOST to 2 in
order to enable cert identity verification. However, I saw that
passing the remote host's IP address to libcurl (as opposed to the
hostname) results on the identity verification failing. This is a bit
inconvenient, as sometimes I may want to use hostnames and IP
addresses interchangeably.

What's the best way to do this?
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2019-01-31