This might be a bit of topic maybe not...
Am trying to make one of JBoss services connect to an https server and I keep getting: java.io.IOException: Default SSL context init failed: null
My code works from a test application outside the JBoss enviroment.. Is it because JBoss is loading up it's own security providers etc...?
This is what I do in my code...
Security.addProvider(...);
/*
* Set the packages that will provide the URL stream
* handlers that can cope with TLS/SSL.
*/
System.setProperty(PROTOCOL_HANDLER_PACKAGES, ...);
// Setup KeyStore
System.setProperty(KEY_STORE_TYPE,...);
System.setProperty(KEY_STORE,...);
System.setProperty(KEY_STORE_PASSWORD,...);
// Setup TrustStore
System.setProperty(TRUST_STORE_TYPE,...);
System.setProperty(TRUST_STORE,...);
System.setProperty(TRUST_STORE_PASSWORD,...);
Thanks