private void initialize(Configuration serverConf, Configuration clientConf)
    throws GeneralSecurityException, IOException, OperatorCreationException {
    serverConf.setBoolean(X509Util.HBASE_SERVER_NETTY_TLS_SUPPORTPLAINTEXT, supportPlaintext);
    clientConf.setBoolean(X509Util.HBASE_CLIENT_NETTY_TLS_VERIFY_SERVER_HOSTNAME, true);
    x509TestContext.regenerateStores(X509KeyType.RSA, X509KeyType.RSA, KeyStoreFileType.JKS,
      KeyStoreFileType.JKS, InetAddress.getLocalHost().getHostName());
  }
Tests for client-side mTLS focusing on client hostname verification in the case when client and
server are on different hosts. We try to simulate this behaviour by querying the hostname with
<p>
InetAddress.getLocalHost()
</p>
Certificates are generated with the hostname in Subject Alternative Names, server binds
non-localhost interface and client connects via remote IP address. Parameter is set to verify
both TLS/plaintext and TLS-only cases.
hbase-server/src/test/java/org/apache/hadoop/hbase/security/TestMutualTlsClientSideNonLocalhost.java