Bug reports and patches are welcome. For a suspected vulnerability, use the security policy, not a public issue.
Go 1.27+ is the only prerequisite. golangci-lint and govulncheck are pinned as tool directives in go.mod, so there is nothing separate to install.
git clone https://github.com/kanywst/y509
cd y509
make run # builds and opens the demo chainmake lint # must report 0 issues
make test # must pass
make vulncheck # must be cleanCI runs the same three. make test-coverage gates at 80%; a patch that drops below it will fail.
- One commit per logical change. A refactor and a behaviour change belong in separate commits.
- Commit messages in English, conventional-commits style. The subject says what changed, the body says why.
- New behaviour needs a test.
pkg/certificatemints its own certificates rather than checking in fixtures, so a chain with the shape you need is a few lines away; seeserverChaininconnect_test.go.
View()is pure: it never mutates the model. Resizing and re-rendering go inUpdate, viaresizeComponents()andrefreshViewportContent().- Key bindings go through
internal/model/keys.go, which also generates the?overlay. pkg/certificatenever writes to stderr by default; a stray line corrupts the TUI. Its logger is a no-op until the app sets one.- The
--jsoncontract inpkg/certificate/report.gois a separate translation layer, not json tags on internal structs.TrustLevelandChainProblemare iota constants and must not leak as numbers. Only strings, timestamps and bools cross it, and slices marshal as[], nevernull.
Attach the certificate if you can. y509 export writes one out, and a chain from a public server is public data.
Write a func(net.Conn) error prelude in pkg/certificate/connect.go and add it to startTLSNegotiators and StartTLSProtocols. The --starttls help and the "unsupported protocol" error update themselves.
Test it against a fake server over net.Pipe, including the awkward cases: a multi-line greeting, an untagged response, a refusal.