clientContext.init(null, trustManager.getTrustManagers(), null);
SSLEngine clientEngine = clientContext.createSSLEngine(host, port);
clientEngine.setUseClientMode(true);
clientEngine.beginHandshake();
byte[] clientInput = new byte[0];
byte[] clientOutput = new byte[0];
SSLEngineResult.HandshakeStatus clientStatus;