Skip to content

RFC 3161 timestamp authorities

RFC 3161 (2001, Standards Track) defines the Time-Stamp Protocol. A client sends a hash ("message imprint"). A timestamp authority (TSA) returns a CMS-signed token binding that hash to a time (genTime), a policy identifier, and a unique serial number.

Status (checked 2026-11-21)

  • RFC 3161 is still the base standard. RFC 5816 (2010) lets tokens identify the TSA certificate with SHA-2 hashes (ESSCertIDv2); it does not change the time guarantees.
  • Implementations include openssl ts (a basic request/response tool, not a server), Sigstore's timestamp authority, and public services such as FreeTSA (best-effort, no SLA).

What it guarantees

  • The TSA signed this hash with this time, under this policy (ยง2.1, ยง2.4.2).
  • The TSA must use "a trustworthy source of time" and a key reserved for timestamping. accuracy (optional) bounds the deviation around genTime.
  • Clients must check that the token covers the hash they asked for (ยง2.2).

What it does not guarantee

  • RFC 3161 "does not establish overall security requirements for TSA operation" (ยง1). Clock quality, key custody and audit come from the TSA's policy, not the protocol.
  • One token means one authority. If its key is compromised, its tokens cannot be trusted; ยง4 suggests an audit trail or "two time-stamp tokens from two different TSAs" as mitigations.
  • No log, no consistency proof, no split-view defence.

Compared with Witness v0.10

RFC 3161 Witness
Signers per artefact One per token (collect several tokens for multi-party) A majority of N on one record
Time TSA genTime under a published policy Each signer's own clock; verifier reports the latest
Format Standard CMS, broad tooling Own JSON; Witness CLI/SDKs only
Key compromise Certificate revocation; tokens after revocation invalid Signed key transitions; old receipts need log inclusion at a trusted checkpoint
Log None Merkle log with stateful checkpoint signers

What Witness could borrow

  • Token output. Offer RFC 3161 tokens (per signer, or the gateway acting as a TSA over a receipt) so standard tools can verify something. A token can only carry one TSA signature, so the multi-signer property would live in a bundle of tokens, not in one token.
  • Policy identifiers and an accuracy field. Publish a time policy and put a declared accuracy in each receipt.
  • Serial uniqueness across crashes (ยง2.4.2) maps to Witness's sequence numbers; make that guarantee explicit.

When to use RFC 3161 instead

When a counterparty, signing format (PDF, code signing, CAdES/XAdES), or contract requires a TSA token, and a single-authority trust model is acceptable.

Sources