LinuxWindows

Where Does mitmproxy Store Certificates and Config?

mitmproxy home directory with CA certificates, config.yaml and flows on Linux and Windows.

Last updated

mitmproxy keeps its certificate authority, config and saved flows in a .mitmproxy directory in your home folder on every OS. The CA files are the keys to its HTTPS kingdom: install mitmproxy-ca-cert.pem on test devices to decrypt their traffic.

Flows save as binary captures you can reload and replay. Back up the folder and the whole interception setup, certs included, moves machines.

Where mitmproxy stores this, by platform

Linux
~/.mitmproxy

Holds mitmproxy-ca.pem and key, config.yaml, and saved flows. Copy the folder to migrate the CA so pinned test devices keep trusting it. Guard the CA key like a password.

Windows
%USERPROFILE%\.mitmproxy

Same CA, config and flows as Linux. Show hidden items in File Explorer to browse it.

Frequently asked questions

How do I trust mitmproxy on a phone?

Install mitmproxy-ca-cert.pem from the folders above onto the device and enable full trust for it. Without that step HTTPS stays opaque.

Where are mitmproxy saved flows?

Wherever you wrote them with the save command, commonly inside .mitmproxy. Reload them with mitmproxy -r for replay and inspection.

Notice an outdated path? Let us know.