Repository navigation
v0.16.0
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.Prepareadds 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.PdfEnvelopeReaderandPdfEnvelope.CheckSignershow where the envelope stands and, before the PIN, whether a certificate may sign a given field.WithEnvelopeFieldonPadesSignerBuilderandDeferredSignerBuildersigns a field: it checks the signer's identifiers, the turn and the level, and refuses withSigningErrorReason29–36.PdfEnvelopeValidatorreports on the whole envelope, also as JSON.- ICP-Brasil levels:
IcpBrasilEnvelopeLevels.AdRbandAdRt. - 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.PAdESnow 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.
- the Adobe Approved Trust List as a trust profile (
- Who signed:
ISignerIdentityReaderreads 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
/Lockis 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).
- a field with a
The full list is in CHANGELOG.md.