docs: public static KeyStore loadKeyStore(String keystoreType, @Nullable String keystorePassword, InputStream is)
              throws KeyStoreException {
          try {
              KeyStore keystore = KeyStore.getInstance(keystoreType);
              keystore.load(is, keystorePassword != null ? keystorePassword.toCharArray() : null);
              return keystore;
          } catch (IOException x) {
              throw new KeyStoreException(x);
          } catch (GeneralSecurityException x) {
              throw new KeyStoreException(x);
          } finally {
              try {
                  is.close();
              } catch (IOException x) {
                  // Ignored.
              }
          }
      }