@NotNull
  public static X509Certificate readCertificate(@NotNull String filePath) throws CertificateException, IOException {
    List<X509Certificate> certificates = loadCertificates(filePath);
    if (certificates.isEmpty()) {
      throw new IOException("Certificate not found");
    }
    return certificates.get(0);
  }
@NotNull
  public static X509Certificate readCertificate(@NotNull String filePath)