Four read-only AI-agent skills that answer, in one sweep, the questions that matter every time an agent has to trust a TLS/CA surface:
/usr/local/share/ca-certificates extras farm +
/etc/ssl/certs store + ca-certificates.conf
sources + the final bundle. Hash-farm links
(.0/.r/.p and numeric chain
suffixes) resolved one hop with DANGLING_LINK /
LINK_NOT_FILE verdicts, cert files with no link at all
(CERT_WITHOUT_LINK), conf lines that name missing sources
(CONF_ENABLED_MISSING_SOURCE, line numbers), world-writable
extras dir, empty or unreadable bundle, store subdirs, multi-link
targets, and the link-kind histogram (cert/crl/params/other).
Certificates are never parsed — the census is purely
structural (names, links, sizes, line counts, cert BEGIN markers). Zero
subprocess, zero writes.openssl_conf → openssl_init →
ssl_conf → system_default resolution carried
as chain rows, min/max protocol floors
(MIN_PROTOCOL_BELOW_TLS1_2,
MAX_PROTOCOL_SSLV3), weak cipher primitives
(WEAK_CIPHER_PRIMITIVE), .include chains with
INCLUDE_MISSING (resolved paths + line numbers), provider
activation census (LEGACY_PROVIDER_ACTIVE,
providers_section_present/absent/file_section rows),
unparsable lines by number, OPENSSL_CONF env override row,
symlinked conf target row. Secret-adjacent values (passwords,
passphrases) are masked as ***:LEN before
they ever leave the process — canary-battery proven. Zero
subprocess..curlrc/.wgetrc directives
(cacert/ca/capath,
cert, key — key files never
opened, presence-only histogram),
check_certificate = off / insecure (flag +
word class) → INSECURE_RC /
CHECK_CERTIFICATE_OFF, missing CA targets
(CAFILE_MISSING, CADIR_MISSING,
CLIENT_CERT_MISSING), world-writable rc files, symlinked rc
target rows, unparsable rc lines by number, and the env layer
(CURL_CA_BUNDLE, SSL_CERT_FILE,
SSL_CERT_DIR, proxy vars — host-only rows; user:password@
userinfo is never printed). The ONLY subprocess ever
spawned is the optional --probe of the winning
[curl, --version], 5-second timeout, argv pinned in source
and battery.DUPLICATE_CERT finding), duplicates across bundles
(DUP_ACROSS_BUNDLES, sorted labels + fingerprint prefix),
private-key contamination (PRIVATE_KEY_BUNDLE_CONTAMINATION
— count and body size only, key material never echoed), unclosed blocks,
empty blocks/files, garbage outside blocks (line count + first-3 line
numbers, canary content never echoed), non-base64 body lines (count
only), CRLF and blank-line drift as counts. Zero subprocess, zero
network, 8 MB read cap per file.Python 3.8+ only, stdlib only. Copy the four tool directories anywhere on PATH or run in place:
capathpeek/agent-harness/cli_anything/capathpeek/core.py --json
sslconfpeek/agent-harness/cli_anything/sslconfpeek/core.py --conf /etc/ssl/openssl.cnf --json
curltrustpeek/agent-harness/cli_anything/curltrustpeek/core.py --json
cabundlelint/agent-harness/cli_anything/cabundlelint/core.py --file /etc/ssl/certs/ca-certificates.crt --jsonOr, from each agent-harness directory:
python3 -m cli_anything.<tool>
Each tool: --json for machines, defaults cover the
standard Debian/Ubuntu CA surfaces, --help for usage.
--certs-dir,
--conf, --sources-dir,
--extras-dir, --bundle--conf (default:
OPENSSL_CONF env, else the standard openssl.cnf
search)--home,
--curlrc, --wgetrc, --path,
--probe--file BUNDLE (repeat
for every bundle)| rc | meaning |
|---|---|
| 0 | clean census, no findings |
| 4 | findings present (trust drift, dangers, unparsable files) |
| 6 | nothing readable (no store / no conf / no rc / no bundle) |
| 2 | usage error |
None of the four tools writes anywhere, parses certificates or key
material, executes anything, or fetches the network. curltrustpeek’s
single optional subprocess is the version probe
curl --version. sslconfpeek and cabundlelint mask every
secret-adjacent value or body before it ever leaves the process. The
batteries assert each of these laws with canary values and mtime
snapshots — run them with python3 runner_count.py.
MIT.