Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

CFSSL

$ cfssl Official Low Risk
Cloudflare · Security & Secrets · BSD-2-Clause · macos / linux / windows

CFSSL (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.

FCRS-1.0 Score
83 /100
Good
Medium Confidence
Zero-Friction Install
brew install cfssl
CLI vs MCP Decision CLI Only

cfssl parses local X.509 files, generates keys/CSRs, and probes TLS hosts directly in the shell with native JSON stdout.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 21 / 25

Emits JSON natively on certinfo, scan, gencert, and genkey with non-interactive flag-only invocation.

  • Native JSON stdout across core subcommands
  • Zero interactive prompts
Trust & Safety 21 / 25

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 gencert contains private key material
Setup & Portability 13 / 15

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 cfssljson alongside cfssl
Utility & Efficiency 13 / 15

Covers CSR/CA generation, X.509 parsing, and TLS endpoint scanning in a JSON-first pipeline.

  • Unified PKI generation and TLS inspection
Maintenance & Lineage 8 / 10

Official Cloudflare repository (cloudflare/cfssl) under BSD-2-Clause, mature with slower release cadence.

  • First-party Cloudflare PKI project
Docs & Verifiability 7 / 10

Subcommand --help is functional, though some advanced scan families and JSON schemas require reading source/wiki.

  • README and subcommand usage summaries

Security, Auth & Guardrails

Auth Modes
No Auth Config File
Credential Storage

Operates on explicit JSON CSR/CA config files passed on the command line (plus local private key .pem files).

Side Effects
Read-Only Local Write
Cost & Quotas

BSD-2-Clause open-source CLI; free to run locally.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Inspect a remote domain's TLS certificate as JSON
cfssl certinfo -domain example.com

Connects to example.com and outputs parsed X.509 subject, SANs, issuer, and validity timestamps as JSON.

Scan a host for TLS protocol and cipher support
cfssl scan -family=Connectivity,TLSHandshake example.com

Runs targeted TLS diagnostics against example.com and prints structured JSON scan results.

Controlled Writes & Previews

Generate a self-signed root CA bundle
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 certinfo and cfssl scan eliminates openssl text scraping.
  • + Completely non-interactive and pipe-friendly via cfssljson.

Caveats & Pitfalls

  • ! gencert and genkey emit private key PEM blocks in stdout JSON—pipe directly to cfssljson rather than printing to agent context.
  • ! Upstream release cadence is relatively slow compared to newer PKI tools like step.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI