public void setKeystoreConfigurations(KeyStoreFileType keyStoreFileType, Configuration confToSet)
    throws IOException {

    confToSet.set(X509Util.TLS_CONFIG_KEYSTORE_LOCATION,
      this.getKeyStoreFile(keyStoreFileType).getAbsolutePath());
    confToSet.set(X509Util.TLS_CONFIG_KEYSTORE_PASSWORD,
      String.valueOf(this.getKeyStorePassword()));
    confToSet.set(X509Util.TLS_CONFIG_KEYSTORE_TYPE, keyStoreFileType.getPropertyValue());
  }
Sets the KeyStore-related SSL system properties onto the given Configuration such that X509Util
can be used to create SSL Contexts using that KeyStore. This can be used in special
circumstances to inject a "bad" certificate where the keystore doesn't match the CA in the
truststore. Or use it to create a connection without a truststore.
@see #setConfigurations(KeyStoreFileType, KeyStoreFileType) which sets both keystore and
     truststore and is more applicable to general use.
hbase-common/src/test/java/org/apache/hadoop/hbase/io/crypto/tls/X509TestContext.java