A secure socket protocol implementation which acts as a factory for SSLEngine and SslHandler. Internally, it is implemented via JDK's SSLContext. === Making your server support SSL/TLS ===
val pipeline = channel.pipeline()
val sslCtx = SslContextBuilder.forServer(...).build()
pipeline.addLast("tls", sslCtx.newHandler())
=== Making your client support SSL/TLS ===
val pipeline = channel.pipeline()
val sslCtx = SslContextBuilder.forClient().build()
pipeline.addLast("tls", sslCtx.newHandler(host, port))
Value parameters
startTls
true if the first write request shouldn't be encrypted by the SSLEngine