mx4j.tools.adaptor.rmi
Class SSLRMIClientSocketFactory
java.lang.Object
mx4j.tools.adaptor.rmi.SSLRMIClientSocketFactory
- RMIClientSocketFactory, Serializable
public class SSLRMIClientSocketFactory
extends java.lang.Object
implements RMIClientSocketFactory, Serializable
The SSL socket factory for RMI connections.
The implementation relies on SSLSocketFactory.getDefault() that creates a default SSLContext;
this context is initialized with a trust store that must contain the certificate of the server,
otherwise a javax.net.ssl.SSLException: untrusted server cert chain is thrown.
The default trust store is searched in this order
- the file pointed by the javax.net.ssl.trustStore system property
- the file /lib/security/jssecacerts
- the file /lib/security/cacerts
So the client normally must have the certificate of the server, and have it in one of the above positions
for RMI over SSL to work.
Version:
createSocket
public Socket createSocket(String host,
int port)
throws IOException
Copyright © 2001-2003 MX4J Team. All Rights Reserved.