static TrustManagerFactory getTrustManagerFactory(SSLConfig config) throws GeneralSecurityException, IOException {
    TrustManagerFactory tmf = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());
    KeyStore ks = loadKeyStore(config.sslTruststorePath, config.sslTruststoreType, config.sslTruststorePassword);
    tmf.init(ks);
    return tmf;
  }
@param config the {@link SSLConfig}.
@return an initialized {@link TrustManagerFactory}
@throws GeneralSecurityException
@throws IOException
ambry-commons/src/main/java/com/github/ambry/commons/NettySslFactory.java