forge
forge copied to clipboard
How to add CRL to caStore?
I have create a caStore and want to add CRL certificate to it so that the caStore can reject the same when came across. I have looked everywhere but unable to find the same
let pki = forge.pki;
let caStore = forge.pki.createCaStore(CAsList);
let customCertificate = pki.certificateFromPem(certificateString);
let cRLDistributionPoint = customCertificate.getExtension('cRLDistributionPoints');
let crlUrl = forge.asn1.fromDer(cRLDistributionPoint.value);
let crl = await fetch(crlUrl);
crl = await crl.text();
// Q. How to add crl to caStore???