예제 #1
0
 /// <summary>
 /// Verifies the signature on the CRL.
 /// </summary>
 /// <param name="crl"></param>
 /// <param name="issuer"></param>
 /// <returns></returns>
 public static bool HasValidSignature(this Crl crl, Certificate issuer)
 {
     try {
         Verify(crl, issuer);
         return(true);
     }
     catch (Exception) {
         return(false);
     }
 }
예제 #2
0
 /// <summary>
 /// Returns true the certificate is in the CRL.
 /// </summary>
 /// <param name="crl"></param>
 /// <param name="certificate"></param>
 /// <returns></returns>
 public static bool IsRevoked(this Crl crl, Certificate certificate)
 {
     return(crl.ToX509Crl().IsRevoked(certificate.ToX509Certificate()));
 }
예제 #3
0
 /// <summary>
 /// Verifies the signature on the CRL.
 /// </summary>
 /// <param name="crl"></param>
 /// <param name="issuer"></param>
 public static void Verify(this Crl crl, Certificate issuer)
 {
     crl.ToX509Crl().Verify(issuer.ToX509Certificate().GetPublicKey());
 }