code: private static TrustManagerFactory createTrustManagers(String filepath, String keystorePassword)
              throws KeyStoreException, FileNotFoundException,
              IOException, NoSuchAlgorithmException, CertificateException {
          KeyStore trustStore = KeyStore.getInstance("JKS");
          try (InputStream trustStoreIS = new FileInputStream(filepath)) {
              trustStore.load(trustStoreIS, keystorePassword.toCharArray());
          }
          TrustManagerFactory trustFactory = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());
          trustFactory.init(trustStore);
          return trustFactory;
      }
docs: Creates the trust managers required to initiate the {@link SSLContext}, using a JKS keystore as an input.
  
  @param filepath - the path to the JKS keystore.
  @param keystorePassword - the keystore's password.
  @return {@link TrustManager} array, that will be used to initiate the {@link SSLContext}.
  @throws Exception