61 lines
1.0 KiB
Markdown
61 lines
1.0 KiB
Markdown
# ctfetch
|
|
|
|
Tools for working with Certificate Transparency log tiles.
|
|
|
|
## Install
|
|
|
|
```bash
|
|
go install ./cmd/ctfetch
|
|
go install ./cmd/tiledump
|
|
```
|
|
|
|
## Commands
|
|
|
|
### ctfetch
|
|
|
|
Fetch and dump leaf entries from CT logs.
|
|
|
|
```bash
|
|
ctfetch [--dumpall] <log-url> <leaf-index>
|
|
```
|
|
|
|
**Examples:**
|
|
|
|
Dump a specific entry:
|
|
```bash
|
|
ctfetch https://halloumi2026h1.mon.ct.ipng.ch 629794635
|
|
```
|
|
|
|
Dump all entries in the tile:
|
|
```bash
|
|
ctfetch --dumpall https://halloumi2026h1.mon.ct.ipng.ch 629794635
|
|
```
|
|
|
|
**Options:**
|
|
- `--dumpall`: Dump all entries in the tile instead of just the specified leaf
|
|
|
|
### tiledump
|
|
|
|
Read a CT log tile file or URL and dump contents. Automatically detects and handles both data tiles (log entries) and hash tiles (Merkle tree hashes).
|
|
|
|
```bash
|
|
tiledump <tile-file-or-url>
|
|
```
|
|
|
|
**Examples:**
|
|
|
|
Data tile from a file:
|
|
```bash
|
|
tiledump tile.data
|
|
```
|
|
|
|
Data tile from a URL:
|
|
```bash
|
|
tiledump https://halloumi2026h1.mon.ct.ipng.ch/tile/data/x002/x460/135
|
|
```
|
|
|
|
Hash tile from a URL:
|
|
```bash
|
|
tiledump https://halloumi2026h1.mon.ct.ipng.ch/tile/0/x100/999
|
|
```
|