public void setConfigurations(KeyStoreFileType keyStoreFileType,
    KeyStoreFileType trustStoreFileType) throws IOException {
    setKeystoreConfigurations(keyStoreFileType, conf);
    conf.set(X509Util.TLS_CONFIG_TRUSTSTORE_LOCATION,
      this.getTrustStoreFile(trustStoreFileType).getAbsolutePath());
    conf.set(X509Util.TLS_CONFIG_TRUSTSTORE_PASSWORD, String.valueOf(this.getTrustStorePassword()));
    conf.set(X509Util.TLS_CONFIG_TRUSTSTORE_TYPE, trustStoreFileType.getPropertyValue());
  }
Sets the SSL system properties such that the given X509Util object can be used to create SSL
Contexts that will use the trust store and key store files created by this test context.
Example usage:

<pre>
    X509TestContext testContext = ...; // create the test context
    X509Util x509Util = new QuorumX509Util();
    testContext.setSystemProperties(x509Util, KeyStoreFileType.JKS, KeyStoreFileType.JKS);
    // The returned context will use the key store and trust store created by the test context.
    SSLContext ctx = x509Util.getDefaultSSLContext();
</pre>

@param keyStoreFileType   the store file type to use for the key store (JKS, PEM, ...).
@param trustStoreFileType the store file type to use for the trust store (JKS, PEM, ...).
@throws IOException if there is an error creating the key store file or trust store file.
hbase-common/src/test/java/org/apache/hadoop/hbase/io/crypto/tls/X509TestContext.java