2
0
mirror of https://github.com/gchq/CyberChef synced 2026-01-02 00:23:55 +00:00

Add basic tests for Parse X.509 CRL operations

This commit is contained in:
Robin Sandhu
2024-08-25 14:26:14 +01:00
parent a50d4d63eb
commit 1fde2fba29
2 changed files with 334 additions and 4 deletions

View File

@@ -176,12 +176,11 @@ function formatCRLExtensions(extensions, indent) {
}
break;
case "cRLDistributionPoints":
out += `X509v3 CRL Distribution Points:`;
out += `X509v3 CRL Distribution Points:\n`;
ext.array.forEach((distPoint) => {
const fullName = `\nFull Name:\n${formatGeneralNames(distPoint.dpname.full, 4)}`;
out += indentString(fullName, 4);
const fullName = `Full Name:\n${formatGeneralNames(distPoint.dpname.full, 4)}`;
out += indentString(fullName, 4) + "\n";
});
out += `\n`;
break;
case "cRLNumber":
if (!Object.hasOwn(ext, "num")) {