Documentation
¶
Overview ¶
Package cmd implements sslmon's command-line interface. main.go is only a shim that calls Main; everything else lives here so the root package stays trivial.
The interface is deliberately tiny: the common case — "show me a domain's certificates" — needs no subcommand, just `sslmon <domain>`. `watch` and `logs` are the only verbs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Row ¶
type Row struct {
NotBefore time.Time `json:"not_before"`
NotAfter time.Time `json:"not_after"`
CommonName string `json:"common_name"`
Names []string `json:"names"`
Issuer string `json:"issuer"`
Source string `json:"source"` // "crt.sh" or the CT log description
Reference string `json:"reference"` // crt.sh URL or "<log-url>#<index>"
Fingerprint string `json:"fingerprint,omitempty"` // SHA-256, watch mode only
}
Row is the unified output shape for a certificate, whether it came from a crt.sh lookup or a live CT-log observation. Keeping one shape means -f tsv and -f json look the same across commands, so downstream tools can be reused.
Click to show internal directories.
Click to hide internal directories.