On our test server, we use the same certificate that is used live. This means that the domain name on the certificate is incorrect. Also, when connecting to the server, it responds back with a different hostname then the one you connect with (it appends the port number on the end). So each time I tried to do a test, I would get a java exception, saying it couldn't create the proxy.
To get around that, I used information from these two sites:
It would be really nice to have these changes checked into the code repository.
Description
On our test server, we use the same certificate that is used live. This means that the domain name on the certificate is incorrect. Also, when connecting to the server, it responds back with a different hostname then the one you connect with (it appends the port number on the end). So each time I tried to do a test, I would get a java exception, saying it couldn't create the proxy.
To get around that, I used information from these two sites:
http://forum.java.sun.com/thread.jspa?threadID=521779&tstart=0http://javaswamy.blogspot.com/2004/12/jsse-how-to-ignore-certificateexceptio.html
And modified the ProxyHandler.java file
It would be really nice to have these changes checked into the code repository.