~/.httpmon/mitmproxy-ca-cert.pem.
Automatic installation
The simplest approach. Run httpmon with--install-ca and it handles everything.
Manual installation
If you prefer to install the certificate yourself, use the platform-specific instructions below.- macOS
- Linux
Add the certificate to the system keychain.
Firefox
Firefox uses its own certificate trust store and does not use the system store. You need to import the certificate manually.- Open Firefox and go to Settings.
- Search for Certificates and click View Certificates.
- Select the Authorities tab and click Import.
- Select
~/.httpmon/mitmproxy-ca-cert.pem. - Check Trust this CA to identify websites and click OK.
Certificate location
The CA certificate and key are stored in~/.httpmon/.
| File | Purpose |
|---|---|
~/.httpmon/mitmproxy-ca-cert.pem | CA certificate (share this to trust the proxy) |
~/.httpmon/mitmproxy-ca.pem | CA private key (keep this secret) |

