public static string ComputeCertHash(string certPem) { return(ComputeSha256Hash(X509Certificate2Utils.ImportFromPem(certPem))); }
public static byte[] ComputeByteSha256Hash(X509Certificate2 cert) { return(ComputeByteSha256Hash(X509Certificate2Utils.ExportToPem(cert))); }