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

mkcert

$ mkcert Official Med Risk
Filippo Valsorda · Security & Secrets · BSD-3-Clause · macos / linux / windows

mkcert (mkcert) creates locally trusted TLS certificates for development domains, IPs, and wildcards without manual OpenSSL configuration. It manages a local root CA (CAROOT) and can install trust into system and browser NSS stores via mkcert -install.

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

mkcert operates directly on local filesystem certificates and OS trust stores, which has no remote MCP equivalent.

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 17 / 25

Cert generation with -cert-file and -key-file is deterministic and non-interactive, though mkcert has no JSON output and -install can trigger OS sudo or GUI password prompts.

  • Deterministic flag-driven leaf certificate generation
  • No --json output; -install may invoke OS privilege prompts
Trust & Safety 20 / 25

Local-only PKI avoids external network calls, though -install mutates the host OS root trust store and rootCA-key.pem must stay outside repos.

  • Zero network access; CAROOT isolation supported
  • -install modifies system trust store
Setup & Portability 15 / 15

Single static Go binary available via brew, choco, apt, and GitHub releases on macOS, Linux, and Windows.

  • Zero-dependency static binary across all three OSes
Utility & Efficiency 13 / 15

Replaces multi-step openssl SAN config files with a single command for local HTTPS dev servers.

  • Single-command SAN certificate generation
Maintenance & Lineage 8 / 10

Created by Filippo Valsorda (FiloSottile/mkcert) under BSD-3-Clause and widely adopted across dev ecosystems.

  • Well-established upstream repository
Docs & Verifiability 8 / 10

Clear README and --help covering CAROOT, -install, and output flags.

  • Concise README and --help reference

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

Stores the local root CA certificate and private key in the directory reported by mkcert -CAROOT (overridable via CAROOT env var).

Side Effects
Read-Only Local Write
Cost & Quotas

BSD-3-Clause open-source CLI; free and local-only.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# mkcert Agent Rules
- Use `-cert-file` and `-key-file` so generated `.pem` files land in an explicit gitignored directory.
- Never run `mkcert -install` or `mkcert -uninstall` without user approval because they modify OS/browser trust stores and may prompt for `sudo`.

Agent-Ready Command Recipes

Safe Read-Only Queries

Inspect the local CA root directory
mkcert -CAROOT

Prints the active CAROOT path containing rootCA.pem without modifying trust stores or writing files.

Controlled Writes & Previews

Generate a local dev cert and key pair
mkcert -cert-file ./certs/dev.pem -key-file ./certs/dev-key.pem localhost 127.0.0.1 ::1

Issues a certificate for localhost and loopback IPs to explicit -cert-file and -key-file paths.

Strengths for Agents

  • + Eliminates error-prone OpenSSL SAN config boilerplate for local HTTPS testing.
  • + Zero-dependency static Go binary with explicit -cert-file and -key-file flags.

Caveats & Pitfalls

  • ! Running mkcert -install modifies system/browser trust stores and often triggers interactive sudo or Keychain prompts.
  • ! Emits human-readable status messages rather than structured JSON.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI