Skip to content
Live demo →

Validator (check)

The intent is a single command that answers “does this endpoint do post-quantum, and does it meet policy X?” with an exit code a script can use.

unicomm cbom is the existing inventory tool (ADR-0018). It checks local certificates and live TLS endpoints against CNSA 2.0:

Terminal window
unicomm cbom # table: local certificates under $UNICOMM_HOME or ~/.unicomm
unicomm cbom --scan localhost:8443 localhost:8446 # also handshake with live endpoints (host:port, repeatable)
unicomm cbom --json --scan example.com:443 > cbom.json # CycloneDX 1.6

It exits 4 if there is any HIGH finding, so it works in a script. The run options are in unicomm cbom --help.

unicomm curl prints the negotiated key exchange and exits non-zero when a policy is not met:

Terminal window
unicomm curl --policy pq-required https://your-host/ # exit 0 and post_quantum=true, or exit 1 with PQ_REQUIRED

Exit codes: 0 ok, 1 error or handshake refused, 2 usage, 3 connected but the result does not meet a PQ policy. The server also logs one JSON line per handshake and exposes unicomm_handshakes_total{group,cipher,proto,policy,pq} and unicomm_handshake_refused_total{reason,policy} at /metrics, so a classical client on a hybrid port is visible.