Packs / cybersecurity-public
tls-config-check
Check our own TLS server's protocol, cipher and certificate expiry and get a pass/fail report
Install
logicpacks pack use cybersecurity-public/tls-config-checkget_pack cybersecurity-public/tls-config-checkThe second line is the MCP tool call for the LogicPacks connector (Claude Code, Codex, Claude.ai and others). The first run of a pack someone else wrote asks for your yes.
Keys it needs (names only)
None.
Playbooks included
- Spec:
spec/SPEC.md(goal, steps, edge cases, don’ts) - Routes:
local-python - Checks: 2 in
outcome/checks.yaml - Code:
tls_check.py - Tools: python3, openssl
Usage, last 8 weeks
New: no recorded use yet.
Purpose (from spec/SPEC.md)
Goal
A report for a TLS endpoint we run (default: a local test server): negotiated protocol (>= TLS 1.2), cipher, certificate subject/issuer, days to expiry, self-signed flag, legacy TLS 1.0/1.1 refused.
Verified by: Self-test generates a 30-day self-signed cert with openssl, serves it on 127.0.0.1, and the checker reports TLSv1.3, days_left 29-30 and self_signed=yes.
Steps
- Run
python3 code/tls_check.py --selftestonce to confirm the tool works here. - Run
python3 code/tls_check.py 127.0.0.1:8443(or our own domain's server we operate, with --allow-own-host). - Renew certs with < 21 days left; disable TLS 1.0/1.1 in the server config.
Edge cases
- SNI: pass --sni for name-based virtual hosts.
- Self-signed is expected for local test servers; it is a FAIL for public endpoints.
Don'ts
- Never point this at machines, hosts or networks we do not own or are not authorised to audit.
- Don't change settings automatically; report, then a human applies fixes.
- Don't use this to probe third-party sites; for our public domains prefer Mozilla Observatory/SSL Labs in a browser.