On 1/31/19 9:43 AM, Martin Galvan via curl-library wrote:
> 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?
>
While it's not *quite* what you're looking for, you might find
  https://curl.haxx.se/libcurl/c/CURLOPT_RESOLVE.html
useful as a way to build a workaround.

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html

Reply via email to