Re: Getting javax.net.ssl.SSLHandshakeException

"Wolfgang Fahl" <[email protected]> Fri, 30 May 2008 09:54:58 +0200
Newsgroups gmane.comp.web.httpunit.devel
Organization BITPlan GmbH
Message-ID <[email protected]>
Mathew,
> As i'm setting the action of a form through getScriptableObject().setAction which is a 
> https link,i'm getting an exception telling
> java.lang.RuntimeException: Error loading included script: 
> javax.net.ssl.SSLHandshakeException: Remote host closed connection during 
> handshake.
> 
> Is there a solution for this. Can anyone help me out.
> Thanks in advance
I think I've seen that one before. In 2004 I had 
experimented with httpunit and SSL and SSL Client 
certificates. We had to use the keytool to import the 
certificates into the java environment to simulate the 
certificate import for the browser.

Here is a note I took on 2004-09-30:
    To fix this I copy the Java trust store (cacerts) to the required directory & then run 
    the keytool command importing the .cer file into the required store and this seems 
    to fix it again for a few days. 
    For key-tool description see:
    http://java.sun.com/j2se/1.4.2/docs/tooldocs/solaris/keytool.htm
    l


    keytool -import -file filename_of_cert -keystore truststore_name -alias 
    name_for_this_entry
    For usage of httpunit with SSL see:
    http://httpunit.sourceforge.net/doc/sslfaq.html
    according to this FAQ:
    	cacerts is in: ./jre/lib/security/cacerts


Yours
  Wolfgang

BITPlan - smart solutions
Pater-Delp-Str. 1, D-47877 Willich Schiefbahn
Tel. +49 1805 - BITPLAN / +49 1805 248 752, Fax +49 2154 811-481
Web: http://www.bitplan.de
bitplan GmbH, Willich - HRB 6820 Krefeld, VAT-ID: 10258040548, 
Geschäftsführer: Wolfgang Fahl

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

_______________________________________________
Httpunit-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/httpunit-develop