Using SSL with Netty

Netty Code

Following code explains how to connect to HTTPS using Netty Client. NettyClientInitializer is the bootstrap class which adds all handlers.

The best way to enable HTTPs is to add SSLContextHandler in the beginning of netty pipeline.