CFSSL
$ cfssl Official Low RiskCFSSL (cfssl) is Cloudflare's command-line and HTTP PKI toolkit for generating CSRs, signing certificates, inspecting X.509 metadata (cfssl certinfo), and scanning live TLS endpoints (cfssl scan). Almost every subcommand emits JSON natively, making it straightforward for agents to parse.
brew install cfssl cfssl parses local X.509 files, generates keys/CSRs, and probes TLS hosts directly in the shell with native JSON stdout.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Emits JSON natively on certinfo, scan, gencert, and genkey with non-interactive flag-only invocation.
- Native JSON stdout across core subcommands
- Zero interactive prompts
certinfo and scan are read-only, though gencert/genkey print raw private keys inside stdout JSON when piped without care.
- Read-only TLS inspection commands
- Stdout JSON from
gencertcontains private key material
Static Go binaries via brew, go install, and GitHub releases, though splitting files requires the companion cfssljson binary.
- Go binaries for macOS, Linux, and Windows
- Common workflows expect
cfssljsonalongsidecfssl
Covers CSR/CA generation, X.509 parsing, and TLS endpoint scanning in a JSON-first pipeline.
- Unified PKI generation and TLS inspection
Official Cloudflare repository (cloudflare/cfssl) under BSD-2-Clause, mature with slower release cadence.
- First-party Cloudflare PKI project
Subcommand --help is functional, though some advanced scan families and JSON schemas require reading source/wiki.
- README and subcommand usage summaries
Security, Auth & Guardrails
Operates on explicit JSON CSR/CA config files passed on the command line (plus local private key .pem files).
BSD-2-Clause open-source CLI; free to run locally.
# CFSSL (cfssl) Agent Rules - Prefer `cfssl certinfo` and `cfssl scan` for read-only TLS inspection. - Keep generated `*-key.pem` files outside version control and avoid printing private key JSON fields into logs.
Agent-Ready Command Recipes
Safe Read-Only Queries
cfssl certinfo -domain example.com
Connects to example.com and outputs parsed X.509 subject, SANs, issuer, and validity timestamps as JSON.
cfssl scan -family=Connectivity,TLSHandshake example.com
Runs targeted TLS diagnostics against example.com and prints structured JSON scan results.
Controlled Writes & Previews
cfssl gencert -initca ca-csr.json | cfssljson -bare ca
Initializes a root CA from ca-csr.json and splits the JSON output into ca.pem and ca-key.pem via cfssljson.
Strengths for Agents
- + Native JSON output on
cfssl certinfoandcfssl scaneliminatesopenssltext scraping. - + Completely non-interactive and pipe-friendly via
cfssljson.
Caveats & Pitfalls
- !
gencertandgenkeyemit private key PEM blocks in stdout JSON—pipe directly tocfssljsonrather than printing to agent context. - ! Upstream release cadence is relatively slow compared to newer PKI tools like
step.