forge icon indicating copy to clipboard operation
forge copied to clipboard

How to add CRL to caStore?

Open ksw25 opened this issue 4 years ago • 0 comments

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???

ksw25 avatar Feb 03 '22 21:02 ksw25