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.0 and 6.1 (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 ?
Or how to configure SSL options, for my AXIS web service client called under JBoss ?
JavaTM Secure Socket Extension (JSSE) : http://download.oracle.com/javase/6/docs/technotes/guides/security/jsse/JSSERefGuide.html