Where to find mitmproxy-ca-cert.p12, if I install mitmproxy in windows 7


Hi All,
I have installed the mitmproxy in my Windows 7 PC, I got a error message after running the certutil.exe -importpfx Root mitmproxy-ca-cert.p12 from my cmd line. the error message is shown below

Any ideas why this does happen? Did I miss something during the installation?

Kind regards,



Is the file mitmproxy-ca-cert.p12 in your C:\ directory?
I ran the command successfully. Going by the error I think the p12 file may not be present in your working directory.
Also, you need to run cmd as admin.
Alternatively, you can also try right clicking the p12 file and click Install PFX


thanks for your suggestion, Yes, I used cmd as admin. unfortunately, I got the error above.

I used the python 3.5 and installed the mitmproxy via the pip. there is no mitmproxy-ca-cert.p12 in my C directory.

I have searched my PC, I don’t have P12 file. Do I need use OpenSSL or manage file encryption certificates to generate p12 file?



more update, I finally managed to get my mitmproxy-ca-cert.p12 in my C:\ directory. I launched the command, but I still get the same error message above. Alternatively, I used the “Windows certificate import wizard” to import this certificate.

After I imported the certificate, I re-run the mitmweb and monitor my traffics. I configured my firefox via the proxy (Mitmproxy) to access the Internet.

However, I only observed the http traffics from my mitmweb. No https traffics have been captured.

Any ideas why this does happen? Did I miss something configuration?

Kind regards,



After configuring the proxy visit http://mitm.it Click on the windows icon save the p12 file. Install this file by right clicking it and choosing install PFX.
If this doesn’t work, try opening mitm.it in preferred browser after configuring the proxy and click on “other” and install the cert.


Hi ujjwal96

when I use google chrome to visit http://mitm.it1. it shows

there is no windows icon that you mentioned above.


There’s no ‘1’ in the url.
Please see this! http://docs.mitmproxy.org/en/stable/certinstall.html#quick-setup