How famasoon/crtsh works
crtsh is a Go CLI and importable package for querying crt.sh certificate-transparency records and extracting DNS names from a certificate. The main workflow dispatches domain or Common Name searches to crt.sh and prints full records or names only; a separate certificate-ID workflow downloads PEM data, parses the certificate, and prints its DNS names. The source shows these calls and output paths; no persistent storage is present.
Main entry points: main.go Argument dispatch · ctlog.go Search and display · parser.go PEM and DNS parsing
Components 7
CLI
- Argument dispatch
main.go
CT Search
- Search and display
crtlog/ctlog.go - HTTP retrieval
crtlog/ctlog.go
Certificate Parsing
- PEM and DNS parsing
parser/parser.go
Other components
- CLI user
- crt.sh
- Terminal output
Connections 8
- CLI user → Argument dispatch: provides options
- Argument dispatch → Search and display: dispatches search
- Argument dispatch → PEM and DNS parsing: dispatches certificate ID
- Search and display → HTTP retrieval: requests records
- PEM and DNS parsing → HTTP retrieval: requests PEM
- HTTP retrieval → crt.sh: fetches data
- Search and display → Terminal output: prints records or names
- PEM and DNS parsing → Terminal output: prints DNS names