---
title: "Publish a policy document"
description: "Publish pdfpqs.json for your signing domain so verifiers can discover your issuers and detect stripped signatures."
---

> Documentation Index
> Fetch the complete documentation index at: https://pdf-pqs.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Publish a policy document

Publishing a `pdfpqs.json` policy document is how your organization tells the world two things: which Certificate Authorities are authorized to issue signing certificates for your domain, and the date from which your organization expects every signed PDF to include a post-quantum signature.

For the background on why this prevents stripping attacks, see [Domain discovery](https://pdf-pqs.org/concepts/discovery).

## 1. Create your policy file

Start with a small JSON file like this one, replacing `example.com` and the certificate/CRL URLs with your own:

```json title="pdfpqs.json"
{
  "version": 1,
  "domain": "example.com",
  "pqcRequiredFrom": "2027-01-01T00:00:00Z",
  "issuers": [
    {
      "certificate": "https://pki.example.net/certs/example-com.der",
      "crl": "https://pki.example.net/crl/example-com.crl"
    }
  ],
  "policies": [
    {
      "oid": "1.3.6.1.4.1.99999.2.2.2",
      "label": "Organization validated",
      "cps": "https://pki.example.net/cps"
    }
  ]
}
```

A few important details to double-check before deploying:

- **`domain`** must match the exact domain in your signing certificates and in the `pdfpqs.<domain>` URL.
- **`issuers`** lists one entry per authorized CA, with HTTPS links to both its DER-encoded certificate and its DER-encoded CRL.
- **`pqcRequiredFrom`** is optional at first. Only add it once *every* document signed by your domain receives a PDF-PQS signature (and any older classical signatures that still need to verify carry ML-DSA timestamps). After that date, verifiers reject any classical signature from your domain that lacks a covering PDF-PQS signature with `E_PQC_REQUIRED_MISSING`.

## 2. Choose how to host it

Verifiers always look for the file at `https://pdfpqs.<domain>/.well-known/pdfpqs.json`. You can either point that subdomain to a signing provider or serve it from your own infrastructure.

### Delegate with a CNAME

Add a single DNS `CNAME` record pointing `pdfpqs.<domain>` to your signing provider. The provider handles serving the JSON file and renewing the TLS certificate for `pdfpqs.example.com`, while your main domain stays completely untouched. To host this yourself on Cloudflare, see [Run a Cloudflare Worker](https://pdf-pqs.org/guides/cloudflare-worker).

```text title="DNS zone of example.com"
pdfpqs.example.com.  3600  IN  CNAME  pdfpqs.provider.example.
```

### Host it yourself

Serve the JSON file directly over HTTPS with a valid TLS certificate for `pdfpqs.example.com`.

```text title="Path on the host"
/.well-known/pdfpqs.json   Content-Type: application/json
```

## 3. Test your deployment

Verify DNS resolution, HTTPS delivery, and JSON formatting from the command line:

```sh
dig +short CNAME pdfpqs.example.com
curl --fail --silent --show-error --max-redirs 0 \
  https://pdfpqs.example.com/.well-known/pdfpqs.json | python3 -m json.tool
```

Confirm two things:

- **No cross-host redirects.** The `--max-redirs 0` check should succeed with HTTP `200 OK`, because verifiers refuse redirects to another hostname.
- **Valid JSON and schema.** The file parses cleanly, `version` is `1`, and `domain` matches your hostname.

## 4. Operational best practices

- **Never roll back `pqcRequiredFrom`.** Verifiers cache policy documents and warn users if `pqcRequiredFrom` is removed or pushed to a later date (which looks like a downgrade attack).
- **Publish new issuers before rotating keys.** Add a new CA to `issuers` before you sign your first production PDF with a certificate from that CA, so verifiers never see an unknown issuer.

For the full formal specification, see [Section 7](https://pdf-pqs.org/specification/discovery).

Source: https://pdf-pqs.org/guides/publish-policy/index.mdx
