@Nullable
  protected static KeyStore loadKeyStore(@NotNull String path, char[] password)
    throws KeyStoreException, IOException, NoSuchAlgorithmException, CertificateException {
    File file = new File(path);
    if (!file.exists()) return null;
    KeyStore tmpStore = KeyStore.getInstance(KeyStore.getDefaultType());
    try (InputStream stream = new FileInputStream(file)) {
      tmpStore.load(stream, password);
    }
    return tmpStore;
  }
@Nullable
  protected static KeyStore loadKeyStore(@NotNull String path, char[] password)