# Verify a deliverable

Every PDF deliverable carries a digital seal applied by Sign API in the envelope's region. Anyone
holding the file can check two things without contacting us: that Sign API produced it, and that
not a byte of the sealed content has changed since. You don't need an account or an API key.

## Our certificates

A deliverable is sealed with one of the certificates below. Compare the signer certificate your
PDF reader shows with this list: the SHA-256 fingerprint is the certificate's SHA-256 hash, as 64
uppercase hexadecimal characters with no separators.

The production certificates for each region will be listed here, with their fingerprints and downloads, before general availability.

## What the seal contains

The seal is a PAdES baseline signature at level B-LT, which PDF readers validate like any other
digital signature:

- **The signature** covers every byte of the file except the slot the signature itself sits in.
  It is a CMS signature (`ETSI.CAdES.detached`) made with the region's sealing key, which is held
  in a hardware security module in that region and never leaves it.
- **The certificate chain** goes from the sealing certificate through an intermediate authority to
  a root that Adobe's trust list includes, so Acrobat and Reader trust it with no setup.
- **A time-stamp** from an independent RFC 3161 time-stamp authority fixes when the seal was made,
  so the date doesn't rest on our clock.
- **Validation data** (the certificates with their OCSP responses and revocation lists) is stored
  in the file, so the seal can still be checked after the certificates expire.

Some deliverables hold more than our seal:

- When an envelope is [created](https://docs.signapi.dev/api/CreateEnvelope) with `attestation` set to `br_icp_brasil`, a
  document time-stamp from an ICP-Brasil accredited authority is added after the seal, in its own revision. Readers list it as
  a second signature.
- With `mx_nom151`, the file ends with a page that links to its NOM-151 preservation record (the
  constancia), an RFC 3161 time-stamp over the SHA-256 of the whole sealed file. The page says how
  to check it.
- In an envelope with qualified signers, the deliverable carries each signer's qualified
  signature, made with their trust service provider's certificate, instead of our seal and audit
  log. Check those signatures against the provider's certificates and the EU trusted lists.

## Check in a PDF reader

Adobe Acrobat Reader is free and validates the whole chain, the time-stamp and the revocation data:

1. Open the deliverable. A bar above the page says whether every signature is valid.
2. Open the **Signature Panel** and expand the signature. It names the signer certificate, the
   signing time and the time-stamp authority, and it states whether the document changed after
   it was signed.
3. Open **Certificate Details** and check that the serial number and SHA-256 fingerprint match one
   of [our certificates](#our-certificates).

A warning in the bar means the file was changed after it was sealed, or the reader couldn't
validate the chain. Changes added after the seal in a later revision, such as the ICP-Brasil
time-stamp, are listed separately and leave the seal valid.

## Check on the command line

`pdfsig` from Poppler (`poppler-utils` on Debian and Ubuntu, `poppler` on Homebrew) prints every
signature in a file with its signer, signing time and validation result:

```bash
pdfsig deliverable.pdf
```

Look for `Signature Validation: Signature is Valid.` and a signer whose certificate matches our
list. `pdfsig` checks the certificate chain against the system's trust store; run it with
`-nocert` to check only that the signed bytes are unchanged.

## Inspect a file on this page

Drop a PDF below to list its signatures. The file is read by your browser and never uploaded.

For each signature, the inspector shows the signer certificate and the certificates the signature
carries, the signing time and any time-stamp. It checks that the signed bytes are unchanged, that
the signature verifies with the signer's certificate, and whether anything was added to the file
after signing. It doesn't check trust lists, revocation or whether a certificate is qualified: use a
PDF reader for that.

<!-- widget:pdf-inspector -->
