[jboss-user] [JBoss Web Services] - WS client SSL Jboss 6 : handshake_failure
immobilia immobilia
do-not-reply at jboss.com
Mon Jan 17 06:19:03 EST 2011
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/JSSERefGuide.html http://download.oracle.com/javase/6/docs/technotes/guides/security/jsse/JSSERefGuide.html
--------------------------------------------------------------
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&containerType=14&container=2044]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110117/277f9826/attachment.html
More information about the jboss-user
mailing list