connector.create();
try
{
SSLMultiplexServerInvoker invoker = (SSLMultiplexServerInvoker) connector.getServerInvoker();
// ServerSocketFactory svrSocketFactory = SSL.createServerSocketFactory("testpw", "testpw", "certificate/clientKeyStore", "certificate/clientTrustStore");
ServerSocketFactory svrSocketFactory = SSL.createServerSocketFactory("unit-tests-server", "unit-tests-client", clientKeyStorePath, clientTrustStorePath);
invoker.setServerSocketFactory(svrSocketFactory);
invoker.setClientConnectAddress(addr);
invoker.setClientConnectPort(port);
}
catch (Exception e)
{
e.printStackTrace();
}