immobilia immobilia [
http://community.jboss.org/people/immobilia] created the discussion
"WS client SSL Jboss 6 : handshake_failure"
To view the discussion, visit:
http://community.jboss.org/message/581162#581162
--------------------------------------------------------------
Previously in *Jboss 4.2.3 i use in scheduler this working code* *to call a WS under SSL*
(certificate)
String keyStore = "/DATA/my.cert.p12";
String keyStoreType = "PKCS12";
String keyStorePassword = "secret";
System.setProperty("javax.net.ssl.keyStore", keyStore);
System.setProperty("javax.net.ssl.keyStoreType", keyStoreType);
System.setProperty("javax.net.ssl.keyStorePassword", keyStorePassword);
WsClient wsClient = new ServiceProxy();
String intput = "just test ssl ws";
wsClient.serviceMethod(input);
But now with *Jboss 6 (final), using the same code* from the sames machines (client call
and remote WS service), *jboss return this fatal error* :
2011-01-17 12:03:16,093 FATAL [com.placeoweb.ws.MyClassCallByTimer] (Timer-1) class
org.apache.axis.AxisFault: javax.net.ssl.SSLHandshakeException: Received fatal alert:
handshake_failure
I try to add
System.setProperty("javax.net.ssl.keyStoreProvider", "SunJSSE");
but same result..
If i start *Jboss with JVM javax.ssl option, it's working*
-Djavax.net.ssl.keyStore=/DATA/my.cert.p12
-Djavax.net.ssl.keyStoreType=pkcs12
-Djavax.net.ssl.keyStorePassword=secret
*How to dynamicly change the javax.net.ssl.keyStore options before call a WS under HTTPS
?*
JavaTM Secure Socket Extension (JSSE) :
http://download.oracle.com/javase/6/docs/technotes/guides/security/jsse/J...
http://download.oracle.com/javase/6/docs/technotes/guides/security/jsse/J...
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/581162#581162]
Start a new discussion in JBoss Web Services at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]