Files
eleith 090837b0a0
ci/woodpecker/push/build-dane-verify Pipeline was successful
ci/woodpecker/tag/build-ssh Pipeline was successful
ci/woodpecker/tag/build-dane-verify Pipeline was successful
[dane-verify] update how port and resolver args are parsed
2026-02-19 08:17:11 -08:00

35 lines
821 B
Markdown

# 🔍 DANE Verify
a small script that verifies TLSA records against live certificates via SMTP STARTTLS.
## 🤔 How it works
The `check.sh` script does the heavy lifting:
1. Fetches TLSA records for a target host.
2. Checks for `ad` (Authentic Data) flag via DNSSEC.
3. Connects to the host via SMTP STARTTLS.
4. Compares the live cert (or public key) hash with what's in your DNS.
## 🛠 Usage
### Docker
You can run it manually to check a domain:
```bash
docker run --rm \
ghcr.io/eleith/containers-dane-verify \
mail.example.com:25 -r 8.8.8.8
```
*Arguments:*
* `hostname[:port]`: The mail server to check. Port defaults to 25.
* `-r resolver` (Optional): The DNS resolver to use (e.g., 1.1.1.1).
## 📦 Tech Stack
* **Base:** Alpine Linux
* **Tools:** `openssl`, `bind-tools` (dig), `awk`, `bash`