public X509Crl GetCrl(X509Certificate signCert, X509Certificate issuerCert)
{
try {
// gets the URL from the certificate
String crlurl = CertificateUtil.GetCRLURL(signCert);
if (crlurl == null)
return null;
LOGGER.Info("Getting CRL from " + crlurl);
X509CrlParser crlParser = new X509CrlParser();
// Creates the CRL
Stream url = WebRequest.Create(crlurl).GetResponse().GetResponseStream();
return crlParser.ReadCrl(url);
}
catch (IOException) {
return null;
}
catch (GeneralSecurityException) {
return null;
}
}