Default hostnameverifier always returns false ...
Hi,
I am trying to run wsdl2java by supplying an https URL. The JVM args that I am using are:
javax.net.ssl.trustStore=E:/Romil/projects/AirDeccanPlugin/localhost.ks
java.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol
On running wsdl2java, I end up getting the following exception:
java.io.IOException: wrong hostname : should be <...>
I've verified that the hostname (IP address) in the URL exactly matches the CN (IP address) in the server certificate .
When I look at the JSSE code, it seems like the default HostnameVerifier always returns "false".
I also couldnt figure out a non-programatical way of supplying my own
HostnameVerfier to JSSE that returns a "true"
Any solutions/thoughts ?
Thanks and regards,
Romil

