# How to use own certificates in mitmproxy

**URL:** <https://discourse.mitmproxy.org/t/how-to-use-own-certificates-in-mitmproxy/40>\
**Category:** help\
**Created:** [June 9, 2016, 8:21am UTC](https://discourse.mitmproxy.org/t/how-to-use-own-certificates-in-mitmproxy/40 "2016-06-09T08:21:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ali](https://avatars.discourse-cdn.com/v4/letter/a/8c91f0/32.png) [@Ali](https://discourse.mitmproxy.org/u/Ali)\
**Post date:** [June 9, 2016, 8:21am UTC](https://discourse.mitmproxy.org/t/how-to-use-own-certificates-in-mitmproxy/40/1 "2016-06-09T08:21:33Z")

</div>

HI, I have installed mitmproxy on my Linux Ubuntu 14.04 and start to with it. I know that when mitmproxy intercept SSL connection it use default certificates that located in ~/.mitmproxy. And I’ve read in man if I want use my own certificates I need to write this when running program: mitmproxy --cert=mycert.pem (mycert.pem - custom certificate) and --cadir DIRECTORY (custom certificate authority). I do all this but it doesn’t work. What I need to do?

Thanks!

---

<div class="post-metadata">

**Author:** ![mhils](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mitmproxy.org/mhils/32/7_2.png) [@mhils](https://discourse.mitmproxy.org/u/mhils)\
**Post date:** [June 10, 2016, 10:40pm UTC](https://discourse.mitmproxy.org/t/how-to-use-own-certificates-in-mitmproxy/40/2 "2016-06-10T22:40:56Z")

</div>

Hi @Ali,

Did you look at the [Using a custom certificate](http://docs.mitmproxy.org/en/stable/certinstall.html#using-a-custom-certificate) section in the docs? Does this answer you questions?
