/// <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); } }
public void VerifySignature() { var signature = new X509Signature(m_certificate.RawData); _ = signature.Verify(m_certificate); }