Smallstep CLI
$ step Official Med Riskstep brings human-friendly subcommands and --format json output to X.509 certificates, remote TLS endpoints, SSH certificates, and JWTs. It cleanly replaces openssl x509 / s_client stdin hacks for agents while supporting local dev CA creation.
brew install step step certificate inspect --format json gives clean structured TLS/X.509 parsing locally in one command without MCP.
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
Supports --format json on certificate inspect and jwt inspect, plus non-interactive --no-password flags.
- Native
--format jsonon certificate/JWT inspection; hang-free HTTPS inspection
Inspection commands are read-only; certificate/key creation requires explicit --no-password --insecure flags when generating unencrypted dev keys.
- Safe defaults prompt for key encryption unless
--no-password --insecureis explicit
Single Go binary via brew, go install, Docker, and GitHub releases.
- Cross-platform static binary
Replaces fragile openssl + jq/awk parsing pipelines for TLS, X.509, OAuth/JWT, and SSH certs.
- Unified TLS, X.509, JWT, and crypto inspection
Actively maintained by Smallstep (smallstep/cli) under Apache-2.0.
- Official vendor-backed OSS repository
Clear command reference and examples at smallstep.com/docs/step-cli/.
- Well-documented CLI reference and
--help
Security, Auth & Guardrails
Offline inspection requires no auth; CA/ACME client state and root certs live under ~/.step/.
100% free and open-source (Apache-2.0); Smallstep Certificate Manager SaaS is commercial.
# Smallstep CLI (step) Agent Rules - Prefer `step certificate inspect --format json` over `openssl s_client` for clean, hang-free TLS/X.509 diagnostics. - Remember `--insecure` on `step crypto jwt inspect` skips signature verification—use `--jwks` or `--key` when validating authenticity.
Agent-Ready Command Recipes
Safe Read-Only Queries
step certificate inspect https://example.com --format json
Connects, fetches the TLS leaf certificate without stdin hangs, and outputs structured JSON.
step crypto jwt inspect --insecure < token.jwt
Decodes JWT JSON claims locally (--insecure skips signature check for inspection).
Controlled Writes & Previews
step certificate create localhost dev.crt dev.key --profile self-signed --subtle --no-password --insecure
Creates a local dev keypair non-interactively (--no-password --insecure) for test servers.
Strengths for Agents
- +
step certificate inspect --format jsonworks directly on both PEM files andhttps://endpoints without</dev/nullhacks. - + Clean Go binary combining X.509, TLS, JWT, and local dev PKI ergonomics.
Caveats & Pitfalls
- ! Key generation prompts for a passphrase unless
--no-password --insecureis supplied explicitly. - ! Less likely to be preinstalled on minimal Linux containers than
openssl.