private static KeyStore loadKeyStore(String storePath, String storeType, String storePassword)
      throws GeneralSecurityException, IOException {
    try (FileInputStream in = new FileInputStream(storePath)) {
      KeyStore ks = KeyStore.getInstance(storeType);
      ks.load(in, storePassword.toCharArray());
      return ks;
    }
  }
Load a {@link KeyStore} from disk.
@param storePath the file path to the key store.
@param storeType the key store provider type.
@param storePassword the password for the key store.
@return an instantiated {@link KeyStore}.
@throws GeneralSecurityException
@throws IOException
ambry-commons/src/main/java/com/github/ambry/commons/NettySslFactory.java