How to use own certificates in mitmproxy

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!

Hi @Ali,

Did you look at the Using a custom certificate section in the docs? Does this answer you questions?

1 Like