A TUI for X.509 certificate chains. It checks whether a chain verifies, and separately whether it was served correctly: missing intermediates, redundant roots, wrong order. That second check explains "works in the browser, breaks in curl".
Built on the Charm v2 stack: Bubble Tea, Lip Gloss, Bubbles, huh.
Docs: https://dyokto.github.io/y509/docs/. The quick start runs y509 validate on a chain with a missing intermediate, one sent in the wrong order, and a correct one, offline.
Install
Section titled “Install”# Homebrew (macOS)brew install kanywst/tap/y509
# FreeBSDpkg install y509
# Go 1.27+go install github.com/dyokto/y509/cmd/y509@latest# Windowsscoop bucket add kanywst https://github.com/kanywst/scoop-bucketscoop install kanywst/y509docs/guide/install.md covers the module path change from kanywst/y509, release binaries and packages, Windows and FreeBSD.
y509 cert-chain.pem # a file (PEM, DER or PKCS#7)y509 example.com:443 # a live servery509 smtp.example.com:587 --starttls smtp # ...behind STARTTLScat chain.pem | y509 # stdinkubectl get secret tls -o json | y509 # a Kubernetes TLS secretPKCS#7, PKCS#12 and Kubernetes TLS secrets are detected by content. docs/guide/usage.md has every input, STARTTLS, diff and inventory.
Live servers
Section titled “Live servers”An existing file path is read as a file; anything else is an address. The TUI handshake verifies nothing, so a broken chain can still be inspected, in the order the server sent it. See live servers.
Comparing two chains
Section titled “Comparing two chains”y509 diff matches certificates by SHA-256 of their DER and exits 1 when the chains differ. See comparing two chains.
Validating from a script
Section titled “Validating from a script”y509 validate exits 0 for a chain that verifies against the trust store (or --roots) and 1 for one that is self-anchored or broken. --policy fips|pqc and --check-crl add checks. See docs/guide/validate.md.
How the chain was served
Section titled “How the chain was served”A chain can verify and still break curl, Go and Java: a missing intermediate, a redundant root, wrong order. y509 reports that from what was actually sent. See how the chain was served.
Will it validate on that client?
Section titled “Will it validate on that client?”y509 paths builds every path from the leaf to the roots of dated trust store snapshots bundled in the binary (curl, certifi, Debian, OpenJDK, Chrome Root Store) and says per store whether the chain validates as sent. See checking other clients' trust stores.
Machine-readable output
Section titled “Machine-readable output”validate --json prints the full result to stdout and nothing else; errors go to stderr. presentation, conformance, revocation and policy each carry their own ok. See docs/guide/json.md.
Taking an inventory
Section titled “Taking an inventory”y509 inventory lists key, signature and expiry per certificate, as a table, CSV or JSON, without verifying anything. See taking an inventory.
GitHub Actions
Section titled “GitHub Actions”- uses: dyokto/y509@v1 with: target: example.com:443 fail-on: untrusted,mis-served,expiringInputs, outputs and a scheduled monitor: docs/guide/github-action.md.
Keybindings
Section titled “Keybindings”? in the TUI shows them all. The table is in docs/guide/tui.md.
Configuration
Section titled “Configuration”~/.y509.yaml sets the expiry warning window and the colours (Catppuccin Mocha by default). See docs/guide/tui.md.
Development
Section titled “Development”make build # Build with version infomake test # Run testsmake lint # Run golangci-lintmake vulncheck # Run govulncheckSee ROADMAP.md for plans and non-goals, and CONTRIBUTING.md before sending a patch.
Verifying releases
Section titled “Verifying releases”Releases include a Sigstore-signed checksums.txt, an SPDX SBOM per archive and SLSA build provenance. The cosign and gh attestation commands, for releases before and after the move to dyokto, are in docs/guide/verify-releases.md.
License
Section titled “License”Apache License 2.0
© 2026 The y509 Authors. Licensed under Apache-2.0. Part of dyokto.