private TrustManager[] getClientTrustManager() {
        try {
            TrustManagerFactory trustManagerFactory = TrustManagerFactory.getInstance(
                    TrustManagerFactory.getDefaultAlgorithm());
            trustManagerFactory.init((KeyStore) null);
            TrustManager[] trustManagers = trustManagerFactory.getTrustManagers();
            if (trustManagers.length != 1 || !(trustManagers[0] instanceof X509TrustManager)) {
                throw new KeyManagementException("Unexpected default trust managers:"
                        + Arrays.toString(trustManagers));
            }
            return trustManagers;
        } catch (NoSuchAlgorithmException | KeyStoreException | KeyManagementException e) {
            NetBareLog.wtf(e);
        }
        return null;
    }
Create a client {@link SSLEngine} with the remote server IP and port.

@param host Remote server host.
@param port Remote server port.
@return A client {@link SSLEngine} instance.
@throws ExecutionException If an execution error has occurred.
netbare-core/src/main/java/com/github/megatronking/netbare/ssl/SSLEngineFactory.java