Thanks for the help, it turns out that the issue was related to TLS Renegotiation and the differences in Java 5 and 6. Toggling the sun.security.ssl.allowUnsafeRenegotiation property is a short term fix for now.
On Mon, Feb 28, 2011 at 10:53 PM, sebb <[email protected]> wrote: > On 1 March 2011 03:41, Larry C <[email protected]> wrote: >> Hi, >> >> I’m having some trouble when creating a https connection with client >> certificate authentication using HttpClient 3.1 and Java 6. I created >> a class KeyStoreSocketFactory that implements >> SecureProtocolSocketFactory that adds the certificate to the keystore. >> >> The code works perfectly in Java 5, and has no trouble getting a >> response. However, when I updated our JRE to Java 1.6.0_23 we started >> getting a hang on the handshake. Does a setting need to be changed to >> make this work in Java 6? I end up with the following error: >> HttpMethodDirector:439 - I/O exception >> (org.apache.commons.httpclient.NoHttpResponseException) caught when >> processing request: The server ___ failed to respond >> >> In Java 5 the response is pretty must instant. Does anyone know why >> Java 6 would cause this hang? > > Not sure it applies here, but I've seen reports of issues with IPv6 > causing long delays - try disabling it entirely. > >> Thanks, >> Larry >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
