cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: How do I customise SSL hostname validation

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 29 Jan 2014 11:09:01 +0100 (CET)

On Wed, 29 Jan 2014, Peter Andrews wrote:

> Is it possible to override the hostname validation for SSL certificates? I
> have 2 servers with the same hostname (Primary & Standby) but different IP
> Addresses. My application needs to poll a test page on both servers to
> check their status, To do this I have to specify the IP address instead
> of the hostname in the URL.
> e.g.
> curl_easy_setopt(curl, CURLOPT_URL, "https://x.x.x.x/test.html");

...

> What I would like to know is can I send a request to a specific IP address
> and still verity the certificate contains the expect hostname?
>
> I am using CURL version 7.15.5

We introduced CURLOPT_RESOLVE (in libcurl 7.21.3) for that purpose (among
others)...

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2014-01-29