ConnectionHub doesn't honor the tls parameter in HAPI 2.0 for one port connections, due to the following code in ConnectionFactory:
if (connectionData.getPort2() == 0) {
46 connection = new Connection(connectionData.getParser(),
47 connectionData.getProtocol(), createSocket(
48 connectionData.getHost(), connectionData.getPort(),
49 false);
Filing this issue to document a checkin
In the process, the ability to use a socket factory to create sockets (in order to allow custom certificates in keystores in the future) has been added to ConnectionHub and SimpleServer