builder.addCRLEntry(entry.getSerialNumber(), entry.getDate(), entry.getReason().getCode());
}
X509CRLHolder crlh = builder.build(contentSigner);
JcaX509CRLConverter crlConverter = new JcaX509CRLConverter();
crlConverter.setProvider(BouncyCastleProviderHelper.PROVIDER_NAME);
X509CRL crl = crlConverter.getCRL(crlh);
return new CRLResponse(crl);
} catch (Exception e) {
throw new CertificateException(e);
}