mkcert
$ mkcert Official Med Riskmkcert (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.
brew install mkcert mkcert operates directly on local filesystem certificates and OS trust stores, which has no remote MCP equivalent.
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
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
--jsonoutput;-installmay invoke OS privilege prompts
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;
CAROOTisolation supported -installmodifies system trust store
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
Replaces multi-step openssl SAN config files with a single command for local HTTPS dev servers.
- Single-command SAN certificate generation
Created by Filippo Valsorda (FiloSottile/mkcert) under BSD-3-Clause and widely adopted across dev ecosystems.
- Well-established upstream repository
Clear README and --help covering CAROOT, -install, and output flags.
- Concise README and
--helpreference
Security, Auth & Guardrails
Stores the local root CA certificate and private key in the directory reported by mkcert -CAROOT (overridable via CAROOT env var).
BSD-3-Clause open-source CLI; free and local-only.
# 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
mkcert -CAROOT
Prints the active CAROOT path containing rootCA.pem without modifying trust stores or writing files.
Controlled Writes & Previews
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-fileand-key-fileflags.
Caveats & Pitfalls
- ! Running
mkcert -installmodifies system/browser trust stores and often triggers interactivesudoor Keychain prompts. - ! Emits human-readable status messages rather than structured JSON.