예제 #1
0
 /// <summary>
 /// Verify the signature of a self signed certificate.
 /// </summary>
 public static bool VerifySelfSigned(X509Certificate2 cert)
 {
     try
     {
         var signature = new X509Signature(cert.RawData);
         return(signature.Verify(cert));
     }
     catch
     {
         return(false);
     }
 }
예제 #2
0
        public void VerifySignature()
        {
            var signature = new X509Signature(m_certificate.RawData);

            _ = signature.Verify(m_certificate);
        }