---
name: pq-verify
description: Verify that live systems actually negotiate post-quantum key exchange and catch regressions. Use when asked to check, test, probe or confirm whether a hostname, TLS endpoint, SSH server, database or runtime is post-quantum ready, supports ML-KEM or X25519MLKEM768, or to add a CI check for it.
---

# Post-quantum verification

Confirm what an endpoint negotiates, as opposed to what its configuration says. A hybrid group that is enabled but not negotiated protects nothing.

## Choose a method

- **A shell with OpenSSL 3.5+ or OpenSSH 9.9+:** run the matching probe from `references/probes.md`. Check the local tool version first (`openssl version`, `ssh -V`); an older client cannot offer the hybrid group and reports a false failure.
- **No suitable local tools, and the hostname is public:** call the pq.info SSL Check API described in `references/ssl-check-api.md`. It works over plain HTTPS and returns JSON.
- **Internal endpoints:** probe from inside the network. The API only reaches public hostnames.

## Reading results

- TLS pass: the negotiated group is `X25519MLKEM768` (codepoint `0x11ec`). Fail: `X25519`, `secp256r1`, or any TLS version below 1.3.
- SSH pass: the key exchange is `mlkem768x25519-sha256` or `sntrup761x25519-sha512@openssh.com`. Fail: `curve25519-sha256` or an `ecdh-*` or `diffie-hellman-*` method.
- A certificate that is RSA or ECDSA is expected today and is not a failure of key exchange. Report it separately as a pending signature migration.
- Check every hop. A CDN that negotiates hybrid with browsers can still reach the origin over classical key exchange.

## Report

For each endpoint give: what was tested, the tool and version used, the negotiated group or method, pass or fail, and the checklist item that fixes a failure (from `references/checklist.md`). Say which endpoints you could not reach.

## Regression gate

When asked to keep it that way, add a scheduled CI job that runs the TLS and SSH probes against production hostnames and fails when the negotiated group is classical. The checklist's last phase has the assertion.

## Safety

Probe only hosts the user owns or names. The probes are single handshakes and are safe to run against production. Do not scan address ranges.

## References

- `references/probes.md`: command-line probes with pass and fail output.
- `references/ssl-check-api.md`: the pq.info SSL Check API.
- `references/checklist.md`: the migration checklist, for naming fixes.
