@Test
  public void testMetastoreWithHttps() throws Exception {
    SSLTestUtils.setMetastoreHttpsConf(conf);
    MetastoreConf.setVar(conf, MetastoreConf.ConfVars.SSL_TRUSTMANAGERFACTORY_ALGORITHM,
        KEY_MANAGER_FACTORY_ALGORITHM);
    MetastoreConf.setVar(conf, MetastoreConf.ConfVars.SSL_TRUSTSTORE_TYPE, KEY_STORE_TRUST_STORE_TYPE);
    // false flag in testSSLHMS will set key store type for metastore
    MetastoreConf.setVar(conf, MetastoreConf.ConfVars.SSL_KEYMANAGERFACTORY_ALGORITHM,
        KEY_MANAGER_FACTORY_ALGORITHM);

    testSSLHMS(false);
  }
Test HMS server with Thrift over Http + SSL
@throws Exception
itests/hive-unit/src/test/java/org/apache/hive/jdbc/TestSSL.java