Connecting to Confg Server to get the TLS Parameters

  1. There are 2 ports defined in our config server - a default port and a Auto-detect port
  2. Digital Certificates are installed on the config server
    We are able to connect to the default port but the Auto-detect port gives us a connection timed out error
    We are using the following code:

boolean tlsEnabled = false;
TrustManager trustManager = TrustManagerHelper.createDefaultTrustManager();
KeyManager keyManager = KeyManagerHelper.createEmptyKeyManager();
SSLContext sslContext = SSLContextHelper.createSSLContext(keyManager, trustManager);
sslContext.init(null, getTrustManagers(), null);
SSLExtendedOptions sslOptions = new SSLExtendedOptions(false, “TLS”);
ConnectionConfiguration connConf = new KeyValueConfiguration(new KeyValueCollection());
Endpoint cfgServerEndpoint = new Endpoint(confClientName, hostName, confServerPort,
connConf, tlsEnabled, sslContext, sslOptions);
cConfServerProtocoonfProtocol = new ConfServerProtocol(cfgServerEndpoint);
confProtocol.setClientName(confClientName);
confProtocol.setUserName(confServerUserName);
confProtocol.setUserPassword(confServerPasswd);
confProtocol.setClientApplicationType(CfgAppType.CFGThirdPartyApp.ordinal());
confProtocol.open();

getTrustManagers() - loads the CA and returns the TrustManager
tlsEnabled - is false as auto-detect port is suppose to work like a upgrade mode port
confProtocol.open - returns a timeout error for the auto detect port
for the default port it is able to open - so the hostname, etc must be correct.
Any idea what is going wrong or is our understanding incorrect?

Sorry - this was a firewall issue - it has been resolved now - able to connect to Configuration server