コード例 #1
0
 public static string ComputeCertHash(string certPem)
 {
     return(ComputeSha256Hash(X509Certificate2Utils.ImportFromPem(certPem)));
 }
コード例 #2
0
 public static byte[] ComputeByteSha256Hash(X509Certificate2 cert)
 {
     return(ComputeByteSha256Hash(X509Certificate2Utils.ExportToPem(cert)));
 }