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

**URL:** <https://discourse.mitmproxy.org/t/where-to-find-mitmproxy-ca-cert-p12-if-i-install-mitmproxy-in-windows-7/430>\
**Category:** help\
**Created:** [April 1, 2017, 8:38am UTC](https://discourse.mitmproxy.org/t/where-to-find-mitmproxy-ca-cert-p12-if-i-install-mitmproxy-in-windows-7/430 "2017-04-01T08:38:38Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![qhu009](https://avatars.discourse-cdn.com/v4/letter/q/3da27b/32.png) [@qhu009](https://discourse.mitmproxy.org/u/qhu009)\
**Post date:** [April 1, 2017, 8:38am UTC](https://discourse.mitmproxy.org/t/where-to-find-mitmproxy-ca-cert-p12-if-i-install-mitmproxy-in-windows-7/430/1 "2017-04-01T08:38:38Z")

</div>

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

![](https://canada1.discourse-cdn.com/flex030/uploads/mitmproxy1/original/1X/97eacc5045f87e138577bf2fe352f64d7512669c.png)

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

Kind regards,

Steven

---

<div class="post-metadata">

**Author:** ![ujjwal96](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mitmproxy.org/ujjwal96/32/111_2.png) [@ujjwal96](https://discourse.mitmproxy.org/u/ujjwal96)\
**Post date:** [April 1, 2017, 2:52pm UTC](https://discourse.mitmproxy.org/t/where-to-find-mitmproxy-ca-cert-p12-if-i-install-mitmproxy-in-windows-7/430/2 "2017-04-01T14:52:28Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![qhu009](https://avatars.discourse-cdn.com/v4/letter/q/3da27b/32.png) [@qhu009](https://discourse.mitmproxy.org/u/qhu009)\
**Post date:** [April 1, 2017, 8:28pm UTC](https://discourse.mitmproxy.org/t/where-to-find-mitmproxy-ca-cert-p12-if-i-install-mitmproxy-in-windows-7/430/3 "2017-04-01T20:28:56Z")

</div>

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?

thanks

---

<div class="post-metadata">

**Author:** ![qhu009](https://avatars.discourse-cdn.com/v4/letter/q/3da27b/32.png) [@qhu009](https://discourse.mitmproxy.org/u/qhu009)\
**Post date:** [April 1, 2017, 8:52pm UTC](https://discourse.mitmproxy.org/t/where-to-find-mitmproxy-ca-cert-p12-if-i-install-mitmproxy-in-windows-7/430/4 "2017-04-01T20:52:12Z")

</div>

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.

 ![](https://canada1.discourse-cdn.com/flex030/uploads/mitmproxy1/original/1X/738d15342832c69e09f50d9bd5e04d62e3c7fb48.png)

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

Kind regards,

Steven

---

<div class="post-metadata">

**Author:** ![ujjwal96](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mitmproxy.org/ujjwal96/32/111_2.png) [@ujjwal96](https://discourse.mitmproxy.org/u/ujjwal96)\
**Post date:** [April 2, 2017, 1:48am UTC](https://discourse.mitmproxy.org/t/where-to-find-mitmproxy-ca-cert-p12-if-i-install-mitmproxy-in-windows-7/430/5 "2017-04-02T01:48:20Z")

</div>

After configuring the proxy visit [http://mitm.it](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](http://mitm.it) in preferred browser after configuring the proxy and click on “other” and install the cert.

---

<div class="post-metadata">

**Author:** ![qhu009](https://avatars.discourse-cdn.com/v4/letter/q/3da27b/32.png) [@qhu009](https://discourse.mitmproxy.org/u/qhu009)\
**Post date:** [April 2, 2017, 5:12am UTC](https://discourse.mitmproxy.org/t/where-to-find-mitmproxy-ca-cert-p12-if-i-install-mitmproxy-in-windows-7/430/6 "2017-04-02T05:12:16Z")

</div>

Hi ujjwal96

when I use google chrome to visit [http://mitm.it1](http://mitm.it1). it shows  
 ![](https://canada1.discourse-cdn.com/flex030/uploads/mitmproxy1/original/1X/5e62c1f1837021a3e61d270d4d3be1b58ac916c9.png)

there is no windows icon that you mentioned above.

---

<div class="post-metadata">

**Author:** ![ujjwal96](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mitmproxy.org/ujjwal96/32/111_2.png) [@ujjwal96](https://discourse.mitmproxy.org/u/ujjwal96)\
**Post date:** [April 2, 2017, 9:27am UTC](https://discourse.mitmproxy.org/t/where-to-find-mitmproxy-ca-cert-p12-if-i-install-mitmproxy-in-windows-7/430/7 "2017-04-02T09:27:38Z")

</div>

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