docs: public static void loadKeyStoreFromCertificates(
        KeyStore keyStore, CertificateFactory certificateFactory, InputStream certificateStream)
        throws GeneralSecurityException {
      int i = 0;
      for (Certificate cert : certificateFactory.generateCertificates(certificateStream)) {
        keyStore.setCertificateEntry(String.valueOf(i), cert);
        i++;
      }
    }