docs: private X509Certificate loadX509FromPEMFile(String filename) {
          try {
              return (X509Certificate) CertificateFactory.getInstance("X.509").generateCertificate(FileReader.openStreamToFileFromClassPathOrPath(filename));
          } catch (Exception e) {
              throw new RuntimeException("Exception reading X509 from PEM file", e);
          }
      }