# tls-config-check

Check our own TLS server's protocol, cipher and certificate expiry and get a pass/fail report

- **Space:** cybersecurity-public (https://github.com/Tech-Realm/space-cybersecurity-public/tree/main/tls-config-check)
- **Level:** L2 (as the registry reports it)
- **Keys it needs (names only):** none
- **Tools:** python3, openssl
- **Routes:** local-python; checks: 2
- **Uses:** new (no recorded use yet)
- **Install:** `logicpacks pack use cybersecurity-public/tls-config-check` or MCP `get_pack cybersecurity-public/tls-config-check`
- **Files:** CHANGELOG.md, code/tls_check.py, outcome/EVIDENCE.md, outcome/checks.yaml, outcome/results.json, pack.yaml, spec/SPEC.md, spec/source.md

## Purpose (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

1. Run `python3 code/tls_check.py --selftest` once to confirm the tool works here.
2. Run `python3 code/tls_check.py 127.0.0.1:8443` (or our own domain's server we operate, with --allow-own-host).
3. 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.



---

Canonical URL: https://logicpacks.io/packs/cybersecurity-public/tls-config-check

Developed by TechRealm (techrealm.online), the software team. Operated by Al Jash Trading (Establishment), Abu Dhabi, since 1994, the legal entity that hosts and is responsible for the service. Economic licence CN-1030597, Abu Dhabi Registration Authority. Address: Office 5, Bani Yas West 4, Bani Yas, Abu Dhabi, UAE. Website: https://aljashtrading.com. Contact: hello@logicpacks.io, security@logicpacks.io, WhatsApp +1 713 632 2262 (https://wa.me/17136322262).

Machine-readable index: [/llms.txt](/llms.txt). Plain facts: [/about.md](/about.md). Safety: [/safety.md](/safety.md).
