<!-- Generated by website/scripts/sync-docs.mjs from ROADMAP.md. Edit that file, not this one. -->

# Roadmap

> Every page of this site: https://dyokto.github.io/y509/docs/llms.txt

Themes, not dates. Nothing here is a commitment; the [issue tracker](https://github.com/dyokto/y509/issues) is the source of truth.

y509 answers two questions: *does this chain verify*, and *was it served correctly*. A check belongs here only if it predicts a client failure. It is not a general TLS scanner.

Current release: v1.18.0. Landscape last reviewed 2026-09-17.

## Why it exists

- **Missing intermediates.** Browsers fetch or cache them; curl, Go, Java, Python and Node do not. The same chain works in a browser and fails in a client.
- **Expiry outages.** Over a third of organisations had one in the past year (DigiCert, September 2026).
- **Rotation nobody picks up.** What is served can differ from what was issued, and cert-manager leaves that out of scope.
- **Existing tools miss it.** `openssl s_client` exits 0 when verification fails. SSL Labs cannot reach an internal host.
- **Lifetimes are shrinking.** 200 days today, 100 from 2027-03-15. Less slack for a missed renewal.
- **Inventory is a compliance requirement.** PCI DSS 4.0.1 since 2025-03-31, plus post-quantum migration.

## Next

- **Presentation rules not yet met.** `duplicate` and `unrelated` give no why or fix, and `missing issuer` and `out of order` give no fix. `validate` does not name the verifier or the trust source. The landing page lists none of the subcommand flags.

## Keeping up with X.509

A valid certificate must render completely. A malformed one is a finding.

- **Presentation findings.** `missing issuer`, `redundant root`, `out of order`, `duplicate` and `unrelated`, judged on the chain as sent, under `presentation.findings` and gated by `fail-on: mis-served`. A missing issuer carries the AIA URL to fetch it from.
- **Unreadable blocks.** A block that does not parse is listed under `unparsed` and in the TUI, never dropped.
- **Revocation findings.** Stapled responses are judged under `revocation`, gated by `fail-on: revocation`.
- **Opt-in CRL check.** `validate --check-crl` fetches the CRL each certificate in the verified path points at, anchor excluded, checks its signature against the issuer, and reports `revoked in CRL`, `stale CRL`, `CRL signature invalid`, `CRL out of scope` or `CRL unavailable` under `revocation`, after checking the CRL's issuing distribution point covers the certificate. `revocation.crl` lists every certificate checked, good ones included. HTTP only. A CRL that verified is cached under the user cache directory for up to an hour, never past `nextUpdate`, and re-verified each time; one that no longer verifies is refetched. OCSP is not fetched.
- **Conformance findings.** Hand-rolled rather than zlint, which mostly checks a CA's obligations and predicts no client failure. `conformance` reports a SHA-1 or MD5 signature, RSA under 2048 bits and a CN-only server certificate, gated by `fail-on: conformance`.
- **FIPS policy.** `validate --policy fips` reports `unapproved signature` and `unapproved key` under `policy`, against the rules Go's `fips140=only` mode enforces. Opt-in, since only FIPS-mode clients reject these.
- **PQC policy.** `validate --policy pqc` accepts only ML-DSA or SLH-DSA signatures and ML-DSA, SLH-DSA or ML-KEM keys. `fips` accepts ML-KEM keys too.
- **Post-quantum names.** The floor is Go 1.27, which decodes ML-DSA itself. A signature or key algorithm Go does not know is named from its OID (`RawSignatureAlgorithm`, the SPKI): all twelve SLH-DSA parameter sets, or `unknown (OID …)`. Composite ML-DSA waits for its OIDs to leave draft. The FreeBSD port needs `USES=go:1.27,modules` from the release that raised the floor.
- **Large post-quantum certificates are normal.** An ML-DSA-87 signature is 4,627 bytes, SLH-DSA-256f 49,856. Private CAs issue them today.
- **Extensions view.** The Misc tab and `chain[].extensions` list every extension by name or OID, with the critical bit, and name Must-Staple. `conformance` reports a served precertificate and any critical extension Go does not process, which covers a leaf's `acmeIdentifier`. `nameConstraints` or `policyConstraints` on a leaf is not reported: RFC 5280 forbids it, but no client is known to reject it.
- **Certificate Transparency, offline.** The Misc tab and `chain[].scts` list the embedded SCTs, naming each log, its operator and state from a bundled copy of Google's `all_logs_list.json`. `make ct-logs` refreshes it. `validate` reports `insufficient SCTs` under `conformance` against Chrome's CT policy, counting embedded and TLS-delivered SCTs whose signatures verify against the bundled log keys, for a chain trusted through the system store that carries at least one SCT. SCTs in a stapled OCSP response are not read. The check stops 70 days after the bundled list's date, as Chrome's does. A scheduled workflow keeps main's list fresh, but a binary only carries the list it was released with, so release at least every 60 days and run `make ct-logs` before tagging.
- **International names.** A DNS SAN or common name with an `xn--` label is shown with its Unicode form, and a Unicode common name with its `xn--` form, in the TUI, the SAN text and `chain[].idns`. Search matches either form. A name that fails the IDNA lookup rules, such as an `xn--` label that does not decode, is labelled `invalid IDN`, with the reason in `idns[].error`. Columns are sized by display width (`uniseg`), so CJK names line up.
- **Revocation pointers.** `advisories` reports `no AIA`, and `no CRL pointer` for a certificate that is neither short-lived nor has an OCSP URL. A missing OCSP URL is never a finding. Advisories fail no gate.
- **Usage and endpoints in JSON.** `chain[]` carries `keyUsage`, `extKeyUsage`, `basicConstraints`, `subjectKeyId`, `authorityKeyId`, `caIssuers`, `ocspServers` and `crlDistributionPoints`, the Usage and Endpoints sections and the key identifiers of the Misc tab.
- **Trust store paths.** `y509 paths` builds every path against dated, bundled snapshots of the curl, certifi, Debian, OpenJDK and Chrome stores and gives a reason per store: root absent, cross-sign not sent, cross-sign outside validity, EKU, name constraints. `make trust-stores` regenerates the data from pinned sources. Next: more snapshots (Android, Apple, Microsoft), NSS distrust-after dates, and CCADB intermediates bundled rather than passed with `--intermediates`.
- **Lifetime limit.** `chain[].exceedsCabMaxLifetime` judges a leaf against the CA/Browser Forum maximum for its own `NotBefore`.
- **No-expiry sentinel.** A `9999-12-31T23:59:59Z` `NotAfter` reads as "no expiry" in the TUI, "never" in `inventory` and `FormatValidity`, and as `noExpiry` in JSON, instead of a countdown that `time.Duration` saturated at 106,751 days.
- **Watch.** Merkle Tree Certificates (experimental). TLS trust anchor identifiers (near approval) make serving different chains to different clients correct, so design for it now.

## Presentation rules

- **Two severities.** "Does not verify" blocks. "Verifies but fragile" advises. Different words, different colours.
- **Fixed vocabulary.** A short phrase ("missing issuer"), one clause of why, and the fix. Never a bare boolean or a colour alone.
- **Say which question was answered.** Which verifier, and whether it fetched anything to get there.
- **Label what cannot be decoded.** `unrecognized extension (OID 1.2.3.4, 47 bytes)`, never silence.
- **Promote what is actionable.** Footer hints, then the `?` overlay, then the docs.
- **Truncate with a marker**, never hide.
- **JSON is first-class.** Anything shown is reachable as JSON.
- **Changes land in several places.** The landing page, man page and completions copy the tabs, flags and constants.

## Later

- **Packaging.** winget (#138), AUR and nix (#139). Scoop already updates itself.
- **Malformed-certificate fixtures.** One shared helper instead of every package building its own.

## Non-goals

- **Not a TLS scanner.** Use `testssl.sh` or `sslyze` for ciphers and protocols.
- **No AIA chasing.** It would hide the exact misconfiguration y509 exists to find. Opt-in CRL checks are different: they add facts, they do not fill gaps.
- **No issuance.** No CA, no key generation, no CSRs.
- **Read-only.** Nothing mutates a remote.
- **No second certificate parser.** Read raw ASN.1 only where `crypto/x509` stops: to find the certificates in a container, to read the SAN forms it drops, and to rebuild the TBS for SCT verification.
