From: Vinay M. <vin...@gm...> - 2005-02-18 05:06:22
|
Hi, I am trying to connect to a site that performs client authentication as a part of the SSL handshake. I have jdk 1.4.2_06 and HtmlUnit 1.4. JSSE comes integrated with the jdk. JSSE doesnt seem to be picking up the certificate from the keystore during the client authentication phase. I googled around and found some code snippets that involved writing my own KeyManager and forcing my certificate's alias to be returned whenever there's a request to the KeyManager to pick a client alias. This successfully, results in the the required certificate being sent to the server. 1) Is this is a known bug about JSSE and should I be sending this mail to a java forum instead ? 2) Has anybody been able to use HtmlUnit and perform the client authentication using JSSE but without the force-picking of the client alias ? 3) If it is required to actually have a custom KeyManager, then I presume changes should be made to the HttpClient code to use the customer KeyManager. Is there a way to do this by setting a system property ? Any help would be greatly appreciated. code snippets I was talking about are available at: http://forum.java.sun.com/thread.jsp?forum=2&thread=198871 http://forum.java.sun.com/thread.jspa?forumID=2&threadID=244247 Best Regards, Vinay |