sign

command
v0.7.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Sign demonstrates digitally signing a PDF with a PAdES B-B signature.

The example generates a self-signed RSA certificate at runtime (for demonstration only — production use requires a real certificate from a trusted CA), creates a PDF, and signs it.

PAdES conformance levels supported by Folio:

  • B-B: basic signature (this example)
  • B-T: adds an RFC 3161 timestamp (requires a TSA server)
  • B-LT: embeds revocation data in a Document Security Store
  • B-LTA: adds a document timestamp for long-term archival

Usage:

go run ./examples/sign

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL