Cert tab (CA)¶
Everything needed to trust the Crucible root certificate authority so the proxy can intercept and read TLS (HTTPS) traffic. The proxy mints a per-host leaf signed by this root for each SNI; without the root in the client's trust store, the handshake fails or the client refuses, and HTTPS bodies stay encrypted and unparsed.
Trust the CA only inside the isolated VM you run engagements from, never in your daily-driver OS keychain. See Isolated VM setup.
The root is generated on first launch and kept, with its private key, in the
platform data dir (~/.local/share/crucible/ on Linux,
~/Library/Application Support/ai.crucible.crucible/ on macOS) as
root_ca.pem, root_ca.cer (DER) and root_ca.key. This location does not
follow CRUCIBLE_DATA_DIR.
Crucible root CA¶
- SHA-256 fingerprint with a red Copy (
Fingerprint copied). Verify this matches what the OS trust dialog shows when you import. If they differ, do not trust the cert. - Copy PEM (
PEM copied to clipboard), Save .pem and Save .cer (DER). The save buttons re-export the live root to its on-disk path; hover either for the path, and a confirmation showsSaved <path>. - full PEM block (collapsed): the root PEM with its own Copy PEM.
- GUI trust-store install (collapsed): OS-by-OS trust steps. macOS system
keychain (Always Trust, covers Safari + Chrome), Firefox's own trust store,
iOS configuration profiles, and Linux system trust (
cpto/usr/local/share/ca-certificates/+update-ca-certificates), plus the fingerprint-verification step.
Install recipes¶
Most AI red-team traffic is SDK, agent, or MCP traffic, not browser traffic. The tab shows one card per runtime, each with a copy button, that points the runtime at the root's PEM path so the client trusts the Crucible root. Hover a card for the longer explanation.
| Card | Recipe |
|---|---|
| curl | curl --cacert <root_ca.pem> … (per-invocation flag; no env var) |
| Python (requests · httpx · openai-python) | export SSL_CERT_FILE=<root_ca.pem> (the requests library also reads REQUESTS_CA_BUNDLE) |
| Node.js (axios · fetch · openai-node · anthropic-sdk-typescript) | export NODE_EXTRA_CA_CERTS=<root_ca.pem> |
| Go (anthropic-sdk-go · openai-go · google-cloud-sdk-go) | export SSL_CERT_FILE=<root_ca.pem> |
| Rust (reqwest · hyper-rustls · anthropic-sdk-rust) | export SSL_CERT_FILE=<root_ca.pem> (reqwest reads it since 0.12) |
| Claude / agent CLIs (Claude CLI · claude-agent · Cursor · Cline · Aider) | export SSL_CERT_FILE=<root_ca.pem> (all delegate to the Anthropic SDK) |
| MCP (stdio) (claude-mcp · cursor-mcp) | SSL_CERT_FILE=<root_ca.pem> claude-mcp ... (prefix the spawn so the child inherits it) |
The recipes handle CA trust only. Routing is separate: an SDK honours
HTTPS_PROXY / HTTP_PROXY.
Browser trust¶
The fastest route is Proxy → Intercept → Open Browser, which launches a Chromium-family browser pre-routed through Crucible and trusting the CA by key-pin in a dedicated profile, with no cert import at all.
For a browser you drive yourself, use the GUI trust-store install panel. Firefox keeps its own trust store: Settings → Privacy & Security → Certificates → View Certificates → Authorities → Import the PEM and tick Trust this CA to identify websites.
Typical flow¶
- Copy the recipe for the client you'll route (SDK / agent), or use Intercept → Open Browser for a browser.
- Trust the CA in that client (inside the VM), verifying the fingerprint.
- Set the client's HTTPS proxy to
127.0.0.1:8081. - Drive the target; captures now appear parsed in Proxy → History.
Troubleshooting¶
| Symptom | Cause | Fix |
|---|---|---|
| SDK errors with "certificate verify failed" / "self-signed cert in chain" | The runtime doesn't trust the Crucible root | Apply the matching recipe above; confirm the env var points at the PEM path in the recipe |
| HTTPS rows appear in History but bodies are empty/garbled | Client trusts the CA but a different tool in the chain doesn't | Trust the CA in every hop, or route that hop through Open Browser |
| Fingerprint on the tab ≠ the one the OS trust dialog shows | Wrong cert, or a stale copy in the store | Do not trust it; remove the stale cert and re-import the current PEM |
Recipes show ~/.local/share/crucible/root_ca.pem but the file isn't there |
The platform data dir could not be resolved, so the tab fell back to the Linux default | Check the home directory is set and writable, restart, and re-copy the recipe |
NODE_EXTRA_CA_CERTS set but Node still rejects |
Variable set after the process started, or wrong shell | Export it before launching the Node/agent process; it's read at startup |
| Browser shows cert warnings after import | Firefox uses its own store; a system-trust import won't reach it | Import into Firefox's Authorities list specifically |
See also: Proxy → Options (also has Copy certificate (PEM)) · Proxy → Intercept (Open Browser) · Isolated VM setup.