Configure the sslsocket and sslbisocket transports - client side
Client side Although a SSLSocketBuilder can be used to create a javax.net.SSLSocketFactory, the one on the server side typically will not be available on the client side, so it is the responsibility of the particular subsystem (JBoss Messaging, EJB2, EJB3) to create a RemoteClientInvoker with a suitable SSLSocketFactory. For example, JBoss Messaging takes two steps: it uses a Remoting transport, sslbisocket, whose SSLBisocketClientInvoker is designed to create an SSLSocketFactory through the use of a properly configured SSLSocketBuilder, and it captures appropriate SSL parameters and passes them to the SSLBisocketClientInvoker: Map configuration = new HashMap(); String trustStoreLoc = System.getProperty("org.jboss.remoting.trustStore"); if (trustStoreLoc != null) { configuration.put("org.jboss.remoting.trustStore", trustStoreLoc); String trustStorePassword = System.getProperty("org.jboss.remoting.trustStorePassword"); if (trustStorePassword != null) { configuration.put("org.jboss.remoting.trustStorePassword", trustStorePassword); } } ... Client client = new Client(new InvokerLocator(serverLocatorURI), configuration); ...