Refactor ctail+ctfetch into a common ctool

This commit is contained in:
2026-04-06 01:36:21 +02:00
parent 418e83a83f
commit ba7f0dcb9f
7 changed files with 114 additions and 84 deletions

View File

@@ -5,27 +5,29 @@ Tools for working with [Static CT log](https://c2sp.org/static-ct-api) tiles.
## Install
```bash
GOPRIVATE=git.ipng.ch go install git.ipng.ch/certificate-transparency/ctfetch/cmd/...@latest
GOPRIVATE=git.ipng.ch go install git.ipng.ch/certificate-transparency/ctfetch/cmd/ctool@latest
```
## Tools
The `GOPRIVATE` variable skips the Go checksum database and module proxy, which do not index modules on `git.ipng.ch`.
### ctfetch
## Commands
### ctool fetch
Fetch and decode entries from a Static CT log as structured JSON.
```bash
ctfetch https://halloumi2026h1.mon.ct.ipng.ch 629794635 +all
ctool fetch https://halloumi2026h1.mon.ct.ipng.ch 629794635 +all
```
→ [Full documentation](docs/ctfetch.md)
### ctail
### ctool tail
Tail a Static CT log, printing a one-liner per new cert/precert as it arrives.
```bash
ctail https://halloumi2026h1.mon.ct.ipng.ch
ctool tail https://halloumi2026h1.mon.ct.ipng.ch
```
→ [Full documentation](docs/ctail.md)