Why client certificate connection to GlassFish 3 no longer work under iOS 5 but continue to work with OSX app
===

The goal is to establish a two side certificated connection from iOS 5.1 to Glassfish server 3.1.2

Our code worked fine with Glassfish server 2.x , but does not work any more with Glassfish server 3.1.2
Client side, there is no error returned, every thing seams be well but no response is replayed.
Server side a padding error is notified in the log. (see below)

- The client certificate is imported to the iOS app from a pkcs12 file.
- For the connection we use NSURLConnection.
- We are testing with a standard Glassfish installation

An interesting point is: that the code runs on a classic OSX-App but only if the server option "allowUnsafeRenegotiation=true" is enabled. This server option has no influence on ios 5.

Thank to anyone who can help me out here!

    [#|2012-07-20T15:05:39.756+0200|FINE|glassfish3.1.2|com.sun.grizzly.config.GrizzlyServiceListener|_ThreadID=92;_ThreadName=Thread-2;ClassName=com.sun.grizzly.util.SSLUtils;MethodName=doPeerCertificateChain;|Error during handshake | javax.net.ssl.SSLHandshakeException: Invalid padding |...