docs: public static boolean validCertificateString(String certificateString) {
      try {
        byte[] certBytes = parseDERFromPEM(certificateString, CERT_START, CERT_END);
        generateCertificateFromDER(certBytes);
      } catch (Exception e) {
        return false;
      }
      return true;
    }