Closed dangtony98 closed 4 months ago
Nevermind. I was able to reference an example in one of the tests:
const crl = await x509.X509CrlGenerator.create({
// issuer: caCert.issuer,
issuer: "Test",
thisUpdate: new Date("2022/01/01"),
nextUpdate: new Date("2022/12/12"),
entries: [
{
serialNumber: "01",
revocationDate: new Date("2022/01/01"),
reason: x509.X509CrlReason.certificateHold,
invalidity: new Date("2022/01/01"),
issuer: "CN=Test, O=Дом"
}
],
signingAlgorithm: alg,
signingKey: sk
});
This seems to work.
Foremost, thank you for this great library!
As part of needing to implement various CRL functionality, I noticed related PRs merged here and here but couldn't find any examples in the repo of using these structures.
I wonder if it'd be possible for you to provide some minimal example of using
X509CrlEntry
,X509CrlGenerator
, and any related structures; this would be extremely helpful (something similar to the example showed here should be great).Note that upon trying to create a minimal instance of
X509CrlEntry
with the following:as per the constructor:
I'm getting the following error:
Overall, it would be great to get a concrete example of how to use the structure.