⌨️CLAUDE_CODE_CLIENT_CERT
Also known as CLAUDE_CODE_CLIENT_KEY, CLAUDE_CODE_CLIENT_KEY_PASSPHRASE, Claude Code mTLS
It gives Claude Code a certificate to prove who it is.
Think of it like
It is like you show your own badge at a door that checks each one.
Example
Emma's bank lets no program reach its gateway without a certificate. Her laptop sets the cert and key paths, and Claude Code gets through.
Why it matters
Some networks trust a certificate, not a password. This is how Claude Code shows one.
Definition
Example code
bash
export CLAUDE_CODE_CLIENT_CERT=~/certs/me.crt
export CLAUDE_CODE_CLIENT_KEY=~/certs/me.key
claudeCommon mistake
Key takeaways
- 1Cert path. Who you are.
- 2Key path. Proves it.
- 3Passphrase. If the key is locked.