Ram Subramanian via curl-users
2017-12-18 03:21:11 UTC
Hello,
I'm trying to make an https request to an IP address and it fails because
the common name of the certificate doesn't match the hostname. After some
googling I found that the --resolve option lets me specify the hostname for
that IP and pass this check.
My problem now - the host I make the request to then redirects me to
another host, by IP... and you guessed it, the SNI check now fails for the
second host.
I've tried to provide an additional --resolve option for the second host,
but that doesn't work, and expectedly so.
Seems to me the only way to handle this would be to disable SNI - is there
any way to do this with curl?
Thanks,
Ram
I'm trying to make an https request to an IP address and it fails because
the common name of the certificate doesn't match the hostname. After some
googling I found that the --resolve option lets me specify the hostname for
that IP and pass this check.
My problem now - the host I make the request to then redirects me to
another host, by IP... and you guessed it, the SNI check now fails for the
second host.
I've tried to provide an additional --resolve option for the second host,
but that doesn't work, and expectedly so.
Seems to me the only way to handle this would be to disable SNI - is there
any way to do this with curl?
Thanks,
Ram