Skip to content

v0.16.0

Choose a tag to compare

@github-actions github-actions released this 24 Nov 00:33
· 41 commits to main since this release
54b16cd

What's New

  • A signature envelope inside the PDF (ADR 0033): several people sign the same PDF in turn, with no server. The PDF itself says who signs, in which order, where and at which level.
    • PdfEnvelope.Prepare adds one empty signature field per signer (with seed values and a lock) and a manifest, simplesign-envelope.json, as a file associated with the PDF.
    • PdfEnvelopeReader and PdfEnvelope.CheckSigner show where the envelope stands and, before the PIN, whether a certificate may sign a given field.
    • WithEnvelopeField on PadesSignerBuilder and DeferredSignerBuilder signs a field: it checks the signer's identifiers, the turn and the level, and refuses with SigningErrorReason 29–36.
    • PdfEnvelopeValidator reports on the whole envelope, also as JSON.
    • ICP-Brasil levels: IcpBrasilEnvelopeLevels.AdRb and AdRt.
    • CLI: simplesign envelope prepare|status, sign --envelope-field, validate --envelope.
    • qpdf, pyHanko and veraPDF (PDF/A-3b) accept envelope PDFs. See docs/articles/envelope.md.
  • The PDF object model (ADR 0032): every reader and writer of SimpleSign.PAdES now goes through the cross-reference, instead of scanning the PDF's text. About 7,000 lines of scanning code are gone, and the public API keeps its shape.
  • Trust without a national framework (ADR 0031):
    • the Adobe Approved Trust List as a trust profile (SimpleSign.Adobe.Aatl, --profile aatl);
    • any ETSI trusted list as a profile (TrustedListProfile, --profile tsl);
    • IConstrainedTrustAnchorProvider, for anchors that can refuse a chain.
  • Who signed: ISignerIdentityReader reads CPF and CNPJ (ICP-Brasil, Gov.br), email, serialNumber, the ETSI EN 319 412-1 identifiers and the certificate's SHA-256. WithSignerRole(s) writes PAdES claimed roles (signer-attributes-v2), and validation reads them back.
  • ICP-Brasil: a PDF signature that declares an ICP-Brasil policy and breaks it is no longer valid.
  • Fixes:
    • a field with a /Lock is signed with its FieldMDP reference;
    • co-signed CAdES B-LTA: each archive time-stamp is checked against its own signer;
    • augmenting a co-signed CMS keeps every signer;
    • a new signature field is written through the object model (field names, nested page trees, CRLF kept).

The full list is in CHANGELOG.md.