# Migration checklist

> Every change, in phases, each with an owner, a command and links to the pages that cover it.
>
> Web page: https://pq.info/checklist/ · Index of all pages: https://pq.info/llms.txt

Start with the inventory: you cannot migrate what you have not found. Items marked core are P0/P1 work to finish first. The same list is available as JSON at https://pq.info/data/checklist.json.

## Phase A · Inventory

Find it before you rank it.

### 1. Inventory everything that uses RSA or elliptic curves (CBOM)

- Id: `inventory`
- Owner: Security
- Core (P0/P1): yes
- Guides: [Coding-agent prompts](https://pq.info/audit.md), [Endpoint probes](https://pq.info/audit.md)

Catalog every TLS config, SSH key and library, JWT call, certificate and issuer, signing key, and public-key-encrypted backup across application and IaC repositories. Everything below depends on this list being complete.

### 2. Ask every critical vendor for its post-quantum dates

- Id: `vendors`
- Owner: Security
- Core (P0/P1): yes
- Guides: [Deadlines](https://pq.info/deadlines.md), [Cloud LBs & CDNs](https://pq.info/systems/cloud.md)

CDN, cloud, identity provider, managed databases, payments, CI, and code-signing platforms decide much of your exposure. Record what each supports today and when authentication will follow.

```text
Register: service · hybrid key exchange today? · PQ authentication date · contact
```

### 3. Classify data by how long it must stay secret

- Id: `data-lifetime`
- Owner: Security
- Core (P0/P1): no
- Guides: [ECDH / DH Falls](https://pq.info/compromise.md#ecdh), [Public-Key Archives](https://pq.info/compromise.md#pubkey-at-rest)

Anything that must remain confidential for years and crosses a network or sits in a public-key-encrypted archive goes to the front of the queue. Short-lived data can follow the default order.

## Phase B · Transit Key Exchange

Stops harvest-now, decrypt-later.

### 4. Enable hybrid X25519MLKEM768 on all public CDN zones and edge proxies

- Id: `edge-tls`
- Owner: Infra
- Core (P0/P1): yes
- Guides: [Edge & Proxy TLS](https://pq.info/systems/tls.md), [Cloud LBs & CDNs](https://pq.info/systems/cloud.md), [Endpoint probes](https://pq.info/audit.md), [SSL Check API](https://pq.info/ssl-check.md)

Negotiate IANA group `0x11ec` on TLS 1.3 across all customer-facing domains and API gateways.

```sh
openssl s_client -connect yourdomain.com:443 -tls1_3 -groups X25519MLKEM768
```

### 5. Upgrade CDN-to-origin load balancers (AWS ALB/NLB, GCP, ingress) to PQ-TLS

- Id: `origin-tls`
- Owner: Infra
- Core (P0/P1): yes
- Guides: [Cloud LBs & CDNs](https://pq.info/systems/cloud.md), [Edge & Proxy TLS](https://pq.info/systems/tls.md)

Close the origin gap where traffic between the CDN edge and cloud load balancer falls back to classical `X25519`.

```hcl
ssl_policy = "ELBSecurityPolicy-TLS13-1-2-Res-PQ-2025-09"
```

### 6. Enforce post-quantum KexAlgorithms on all OpenSSH servers and bastions

- Id: `ssh-kex`
- Owner: Infra
- Core (P0/P1): yes
- Guides: [OpenSSH](https://pq.info/systems/ssh.md), [Endpoint probes](https://pq.info/audit.md)

Require `mlkem768x25519-sha256` (OpenSSH 9.9+) or `sntrup761x25519-sha512@openssh.com` (8.5+) in `/etc/ssh/sshd_config`, after confirming every client supports one of them.

```sh
ssh -vvv bastion.yourdomain.com 2>&1 | grep "kex: algorithm"
```

### 7. Upgrade backend runtime TLS clients (Go 1.24+, rustls aws-lc-rs, OpenSSL 3.5+, JDK 27+)

- Id: `runtime-tls`
- Owner: Backend
- Core (P0/P1): yes
- Guides: [App Runtimes](https://pq.info/systems/runtimes.md), [Cloud APIs & SDKs](https://pq.info/systems/cloud-apis.md), [Kubernetes & Mesh](https://pq.info/systems/k8s.md)

Ensure outbound HTTPS requests to third-party APIs and internal services advertise `X25519MLKEM768`. Node.js bundles its own OpenSSL (22.20+ or 24.5+) and Java uses its own TLS stack (JDK 27+), so check those separately from the base image. In Kubernetes, Istio 1.27+ can enforce it mesh-wide and Linkerd 2.19+ does by default.

```text
Remove custom Go CurvePreferences arrays that omit tls.X25519MLKEM768
```

### 8. Enable hybrid key exchange on database, cache and queue connections

- Id: `db-tls`
- Owner: Backend
- Core (P0/P1): yes
- Guides: [Databases & Caches](https://pq.info/systems/databases.md)

Credentials and query results cross these links on every request. PostgreSQL needs version 18 and an explicit `ssl_groups`, because its default is classical; Redis needs 8.12 for `tls-groups`. For managed services, probe the endpoint and ask the provider.

```sh
openssl s_client -connect db.internal:5432 -starttls postgres -groups X25519MLKEM768 </dev/null
```

### 9. Mix a 256-bit PresharedKey (or Rosenpass) into WireGuard and IPsec tunnels

- Id: `vpn-psk`
- Owner: Infra
- Core (P0/P1): no
- Guides: [WireGuard & VPN](https://pq.info/systems/vpns.md)

Protect private mesh overlays against passive capture and keep PQ-TLS on all traffic inside the tunnel. Tailscale 1.106+ does this automatically; strongSwan 6.0+ and Libreswan 5.4+ can add ML-KEM to IKEv2.

```sh
wg show all preshared-keys   # no peer should print (none)
```

### 10. Log the negotiated group and track the share of hybrid handshakes

- Id: `pq-share`
- Owner: Infra
- Core (P0/P1): no
- Guides: [Edge & Proxy TLS](https://pq.info/systems/tls.md), [Endpoint probes](https://pq.info/audit.md)

Enabling a group protects only the connections that negotiate it. Measure coverage per hostname and chase the clients that still fall back to classical.

```nginx
log_format pq '$remote_addr $ssl_protocol $ssl_curve';
```

## Phase C · Data Encrypted to Public Keys

Stored ciphertext is exposed like recorded traffic.

### 11. Replace public-key encryption of backups, secrets and fields

- Id: `pubkey-at-rest`
- Owner: Security
- Core (P0/P1): yes
- Guides: [Secrets & Backups](https://pq.info/systems/secrets.md), [Public-Key Archives](https://pq.info/compromise.md#pubkey-at-rest), [Static RSA Falls](https://pq.info/compromise.md#rsa)

Find everything encrypted to an RSA or elliptic-curve public key: `RSA-OAEP` key wrapping, PGP, age with X25519 recipients, SOPS, sealed-secrets, JWE `ECDH-ES`. Re-wrap under a symmetric KMS key or a post-quantum recipient (age 1.3+ `age1pq1…`, SOPS 3.12+).

```text
KMS KeySpec = SYMMETRIC_DEFAULT (AES-256-GCM) · no RSA_* or ECC_* wrapping keys
```

### 12. Rotate long-lived secrets that crossed classical channels

- Id: `rotate-secrets`
- Owner: Security
- Core (P0/P1): no
- Guides: [Secrets & Backups](https://pq.info/systems/secrets.md), [ECDH / DH Falls](https://pq.info/compromise.md#ecdh)

Database passwords, API keys and signing secrets sent over classical TLS or SSH before you migrated may already be recorded. Rotate them once the channel is hybrid, and treat old public-key-encrypted copies outside your control as exposed.

## Phase D · Tokens, Signatures & Certificates

Not retroactive, but slowest to replace.

### 13. Require dual signatures (Ed25519 + ML-DSA-65) on desktop and CLI auto-updaters

- Id: `updater-dual`
- Owner: Client
- Core (P0/P1): yes
- Guides: [Updaters & Signing](https://pq.info/systems/signing.md), [Signatures Fall](https://pq.info/compromise.md#signatures)

Verify both a classical and a FIPS 204 post-quantum signature before executing any downloaded release binary. Ship the new public key in a release now; installed clients can only verify with keys they already hold.

```js
ED25519_PUB.verify(manifest) && MLDSA65_PUB.verify(manifest)
```

### 14. Migrate internal same-boundary JWTs from RS256/ES256 to 256-bit HS256 HMAC

- Id: `jwt-hmac`
- Owner: Backend
- Core (P0/P1): no
- Guides: [JWTs & Auth](https://pq.info/systems/jwt.md), [Signatures Fall](https://pq.info/compromise.md#signatures)

Where the same backend mints and verifies session tokens, switch to symmetric HMAC with strict `algorithms: ['HS256']` pinning. Do not share one signing secret across many services.

```js
jwt.verify(token, secret32Bytes, { algorithms: ['HS256'] })
```

### 15. Prepare cross-boundary tokens: version signature headers and raise proxy buffers to 16 KB

- Id: `header-buffers`
- Owner: Backend
- Core (P0/P1): no
- Guides: [JWTs & Auth](https://pq.info/systems/jwt.md), [Edge & Proxy TLS](https://pq.info/systems/tls.md)

Tokens and webhooks that third parties verify cannot use HMAC; their path is ML-DSA (RFC 9964). Add an algorithm or version field now, and make sure NGINX/Envoy gateways accept 4.4 KB Base64 post-quantum signatures in headers.

```nginx
large_client_header_buffers 4 16k;
```

### 16. Inventory SSH host and user keys and move to short-lived SSH certificates

- Id: `ssh-keys`
- Owner: Infra
- Core (P0/P1): no
- Guides: [OpenSSH](https://pq.info/systems/ssh.md)

Host keys, user keys and SSH certificates are RSA or elliptic-curve signatures until you replace them. Know where every key lives, issue short-lived certificates from a CA so a re-key is one change and not thousands, and add the hybrid `ssh-mldsa44-ed25519` key type once servers and clients run OpenSSH 10.6+.

```sh
ssh-keyscan -t rsa,ecdsa,ed25519 host | ssh-keygen -lf -
```

### 17. Automate short-lived certificates with a fresh key per renewal, and rotate token-signing keys

- Id: `cert-automation`
- Owner: Security
- Core (P0/P1): no
- Guides: [X.509 PKI & mTLS](https://pq.info/systems/pki.md)

Short lifetimes only narrow exposure when each renewal uses a new key, and they do not protect long-lived CA or identity-provider keys. The automation is what lets you switch to post-quantum certificates quickly once your CA issues them.

```sh
certbot certonly --preferred-profile shortlived --new-key -d example.com
```

### 18. Pilot ML-DSA-65 certificates on one internal mTLS path

- Id: `internal-mtls`
- Owner: Security
- Core (P0/P1): no
- Guides: [X.509 PKI & mTLS](https://pq.info/systems/pki.md), [Kubernetes & Mesh](https://pq.info/systems/k8s.md)

Where you control both trust stores, issue from a post-quantum internal CA on a stack that supports ML-DSA in TLS 1.3 (OpenSSL 3.5+, Go 1.27+, rustls 0.23.44+). Start with one service pair to learn what your libraries, proxies and tooling do with the larger certificates.

```sh
openssl req -x509 -new -newkey mldsa65 -keyout ca.key -out ca.crt -nodes -subj "/CN=PQ CA"
```

## Phase E · Baseline & Regression Gates

Keep what you fixed.

### 19. Verify AES-256 at rest and SHA-256 or stronger hashing

- Id: `symmetric-baseline`
- Owner: Security
- Core (P0/P1): no
- Guides: [Symmetric & Hash](https://pq.info/compromise.md#symmetric), [Secrets & Backups](https://pq.info/systems/secrets.md)

Confirm disks, object storage and database snapshots use AES-256 with symmetric KMS keys. These need no re-encryption.

```text
KMS KeySpec = SYMMETRIC_DEFAULT (AES-256-GCM)
```

### 20. Enforce a daily CI handshake assertion against production TLS and SSH endpoints

- Id: `ci-assert`
- Owner: Infra
- Core (P0/P1): no
- Guides: [Endpoint probes](https://pq.info/audit.md), [SSL Check API](https://pq.info/ssl-check.md)

Fail CI if any public domain drops back to classical `0x001d` (X25519) or `curve25519-sha256`, and lint IaC for classical-only TLS policies.

```sh
openssl s_client -connect $HOST:443 -tls1_3 -groups X25519MLKEM768 </dev/null   # non-zero exit = no hybrid
```
