public SSLEngine buildClientSSLEngine ( String host , int port ) { SSLEngine engine = sslContext . createSSLEngine ( host , port ) ; engine . setUseClientMode ( true ) ; return addCommonConfigs ( engine ) ; }
Build ssl engine for client side .