mitmproxy/doc-src/ssl.html

47 lines
1.8 KiB
HTML
Raw Normal View History

2011-03-18 04:53:00 +00:00
The first time __mitmproxy__ or __mitmdump__ is started, the following set of
certificate files for a dummy Certificate Authority are created in the config
directory (~/.mitmproxy by default):
<table>
<tr>
<td>mitmproxy-ca.pem</td>
<td>The private key and certificate in PEM format.</td>
</tr>
<tr>
<td>mitmproxy-ca-cert.pem</td>
2011-03-18 22:26:51 +00:00
<td>The certificate in PEM format. Use this to distribute to most
2011-03-18 04:53:00 +00:00
non-Windows platforms.</td>
</tr>
<tr>
<td>mitmproxy-ca-cert.p12</td>
2011-03-18 22:26:51 +00:00
<td>The certificate in PKCS12 format. For use on Windows.</td>
2011-03-18 04:53:00 +00:00
</tr>
</table>
2011-03-18 22:26:51 +00:00
This CA is used for on-the-fly generation of dummy certificates for SSL
interception. Since your browser won't trust the __mitmproxy__ CA out of the
box (and rightly so), you will see an SSL cert warning every time you visit a
new SSL domain through __mitmproxy__. When you're testing a single site through
a browser, just accepting the bogus SSL cert manually is not too much trouble,
but there are a number of cases where you will want to configure your testing
system or browser to trust the __mitmproxy__ CA as a signing root authority:
- If you are testing non-browser software that checks SSL cert validity using
2011-03-18 22:26:51 +00:00
the system certificate store.
2011-03-15 22:09:10 +00:00
- You are testing an app that makes non-interactive (JSONP, script src, etc.)
requests to SSL resources. Another workaround in this case is to manually visit
the page through the browser, and add a certificate exception.
- You just don't want to deal with the hassle of continuously adding cert
exceptions.
Installing the mitmproxy CA
2011-03-19 06:47:19 +00:00
---------------------------
2011-03-15 22:09:10 +00:00
2011-03-18 22:26:51 +00:00
* [Firefox](@!urlTo("certinstall/firefox.html")!@)
* [OSX](@!urlTo("certinstall/osx.html")!@)
* [Windows 7](@!urlTo("certinstall/windows7.html")!@)
* [iPhone/iPad](@!urlTo("certinstall/ios.html")!@)
2011-03-17 20:04:49 +00:00