Repository navigation
Description
Why
ISO 19005-2:2011 Annex B.1 (NEN reading 2026-12-02, RNR 161167) says, among other things: a timestamp and revocation information should be included (it cites ISO 32000-1, 12.8.3.3.1); "this" revocation information and as much of the chain as is available shall be captured and validated before the PDF Signature is completed; and the revocation information shall be a signed attribute of the PDF Signature. B.2 lets a reader ignore embedded revocation information in favour of alternative storage or referenced data.
Maintainer ruling, 2026-12-02: B.1 governs only revocation data carried inside the PDF Signature, meaning the CMS object. Revocation data in a DSS dictionary is the alternative storage B.2 names, so B-LT and B-LTA output stays PDF/A-2 conformant on this point. (The other reading, that B.1 binds every revocation datum for the signature anywhere in the file, was set aside: it would make the DSS non-conformant, and the DSS is a PAdES feature that ISO 32000-1 does not describe.)
What the library does
Measured by reading origin/main 2d587c2; a search of src and tests for 1.2.840.113583 and revocationInfoArchival finds no hit, so no path writes the Adobe revocation attribute (ISO 32000-1, 12.8.3.3.2, p. 475) into the CMS.
- B-B and B-T carry no revocation data. B.1 says "should", so this is allowed.
- B-LT and B-LTA fetch revocation data after the CMS is written and put it in a DSS in a later incremental revision (
PadesLevel.cs:33-37,SigningExtensions.cs:386and:396);DssBuilder.cs:68-82reads the signer's CMS only for the timestamp attribute. Under the ruling this is the alternative storage of B.2. - So the library never puts revocation data in the CMS, and the "signed attribute" sentence is never in play for its own output.
What the validator and the docs say today
SignatureRule.cs:21-27lists "revocation information as a signed attribute" under "Not checked".SignatureRulechecks ByteRange, one certificate and one SignerInfo (:10-14,CheckCmsat:222).PadesLevel.cs:11-17says B-LT and B-LTA preserve conformance, with no word on where the revocation data sits or why that is allowed.- A file from another producer can carry the Adobe attribute as an unsigned attribute, or revocation data in the CMS
crlsset. Neither is reported.
Proposal
SignatureRulereports, per signature, revocation data carried inside the CMS that is not a signed attribute. The first check is theadbe-revocationInfoArchivalattribute (OID 1.2.840.113583.1.1.8) found among the SignerInfo's unsigned attributes. Whether the CMScrlsset also counts as "revocation information of the PDF Signature" needs the clause text and RFC 2315 read before it is added; list it as a follow-up rather than guess.- A DSS, and a signature with no in-CMS revocation data, are not reported.
- The
SignatureRuleremarks drop the "not checked" sentence for this item and state the reading with the clause: B.1 binds revocation data inside the PDF Signature; DSS data is alternative storage under B.2. - The
PadesLevelremarks say the same, so a caller reading B-LT's "preserves its conformance" can see why the DSS is allowed.
Acceptance
- A fixture with the Adobe revocation attribute as an unsigned attribute is reported; the same attribute as a signed attribute passes; a B-LT file with a DSS and no in-CMS revocation data passes. The fixtures are asserted to contain the construct before the verdict is trusted.
- A mutation that removes the unsigned-attribute check fails the first fixture.
- XML docs and remarks changed as in 3 and 4, with the clause cited; CHANGELOG entry.
Not settled here: whether /SubFilter /ETSI.CAdES.detached, the default (PdfSignatureSettings.cs:153), is acceptable in PDF/A-2. B.1 requires readers to support adbe.pkcs7.detached and adbe.pkcs7.sha1 and permits other values, so it is not forbidden; that reading goes in its own issue if the maintainer wants the default changed.
Related: #418.
Activity