if (log.isDebugEnabled()) {
log.debug("CONNECT {}", ch);
}
if (null != sslOptions) {
SSLEngine ssl = new SSLEngineSupplier(sslOptions, false).get();
if (log.isDebugEnabled()) {
log.debug("SSL enabled using keystore {}",
(null != sslOptions.keystoreFile() ? sslOptions.keystoreFile() : "<DEFAULT>"));
}
ch.pipeline().addLast(new SslHandler(ssl));