we had similar problems when we switch to jdk 1.4.0 or 1.4.1. the work around for us looks like this:
System.getProperties().setProperty( "java.protocol.handler.pkgs", "com.sun.net.ssl.internal.www.protocol" );
com.sun.net.ssl.HostnameVerifier hv = new MyHostnameVerifier();
com.sun.net.ssl.HttpsURLConnection.setDefaultHostnameVerifier( hv );
I know that using the com.sun-classes is nasty but we used JSSE before.
we never figured out why the default hostname-verifier from jdk1.4 (sun) always returned false on the check
maybe this helps you a bit
Kristian
Alex Young wrote:
Hi, I am trying to use the SecureXmlRpcClient class but am geting this error:
java.io.IOException: HTTPS hostname wrong should be (localhost)
the path IS is set to localhost and the correct certificates are in place. I get a similar message if I replace 'localhost' with '127.0.0.1'. Anyway seen this error before? Thanks
Alex Young ____________________________________________________________________________ ____________