code: private TSocket createTLSSocket(String host) throws TTransportException {
          TSSLTransportParameters sslParams = new TSSLTransportParameters("SSL", m_dbtls_cipher_suites);
          if (!Utils.isEmpty(m_keystore)) {
              sslParams.setKeyStore(m_keystore, m_keystorepassword);
          }
          if (!Utils.isEmpty(m_truststore)) {
              sslParams.setTrustStore(m_truststore, m_truststorepassword);
          }
          return TSSLTransportFactory.getClientSocket(host, m_dbport, m_db_timeout_millis, sslParams);
      }
docs: Create a TSocket using configured TLS/SSL options.