Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/al2klimov/tlsautomate
https://github.com/al2klimov/tlsautomate
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/al2klimov/tlsautomate
- Owner: Al2Klimov
- License: mpl-2.0
- Created: 2021-08-15T11:46:20.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-08-16T17:34:26.000Z (over 3 years ago)
- Last Synced: 2023-08-06T23:11:23.612Z (over 1 year ago)
- Language: Go
- Size: 27.3 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TLSAutomate
Manages TLSA DNS records automatically based on X.509 certificates.
## Usage
```bash
docker run --rm -d \
-v tlsautomate:/data \
-v traefik1_acme:/acme1 \
-v traefik2_acme:/acme2 \
-e TLSAUTOMATE_CONFIG='
inputs:
# https://traefik.io
traefik: # supports multiple ones
- acme_json: /acme1/acme.json # the containing directory should be mounted,
- acme_json: /acme2/acme.json # not just the file
ports: # default: all
tcp:
- 25
- 443
udp:
- 42
records: # sane defaults (may change!)
ttl: 3600
cert_usage: 3
selector: 1
match_type: 1
outputs:
debug: true
# https://desec.io
desec: # supports multiple ones
- token: ABCDEFGHIabcdefghi12345678-_ # only outputs records
- token: JKLMNOPQRSTUVjklmnopqrstuv90 # for already present domains
' \
grandmaster/tlsautomate
```## Caveats
* Before adding an output, purge the `tlsautomate:/data` volume!
* After removing an output, clean the TLSA records by yourself.
* Wildcard certificate SANs (like `*.example.com`) are **not** translated
to TLSA records `_25._tcp.*.example.com.` and `_443._tcp.*.example.com.`
(even if only the ports 25 and 443 are configured),
but to `*.example.com.` (effectively all ports).
* If the input only provides `*.example.com`, but the output detects
an A/AAAA record for e.g. `smtp.example.com.`,
TLSA records for `smtp.example.com.` are implied.
* The above feature doesn't work post-factum.
I.e.: on A/AAAA record creation copy the `*.example.com.` TLSA record
to `*._tcp.smtp.example.com.` by yourself.