aboutsummaryrefslogtreecommitdiffstats
path: root/doc-src/ssl.html
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2013-12-11 14:04:45 +0100
committerMaximilian Hils <git@maximilianhils.com>2013-12-11 14:04:45 +0100
commite99eaa3a19eb67005e211f5cf54add2361ab9fe5 (patch)
treebef915499d758522f6a8d0b32bdde667ba87e846 /doc-src/ssl.html
parentf0e96be142dc9c43deb174bcaffc4b83726bb9bc (diff)
downloadmitmproxy-e99eaa3a19eb67005e211f5cf54add2361ab9fe5.tar.gz
mitmproxy-e99eaa3a19eb67005e211f5cf54add2361ab9fe5.tar.bz2
mitmproxy-e99eaa3a19eb67005e211f5cf54add2361ab9fe5.zip
add documentation on how to use custom certificates
Diffstat (limited to 'doc-src/ssl.html')
-rw-r--r--doc-src/ssl.html14
1 files changed, 14 insertions, 0 deletions
diff --git a/doc-src/ssl.html b/doc-src/ssl.html
index 68e9a57c..03067c30 100644
--- a/doc-src/ssl.html
+++ b/doc-src/ssl.html
@@ -34,6 +34,20 @@ testing system or browser to trust the __mitmproxy__ CA as a signing root
authority.
+Using a custom certificate
+--------------------------
+
+You can use your own certificate by passing the __--cert__ option to mitmproxy.
+
+<pre class="terminal">
+> openssl genrsa -out cert.key 8192
+> openssl req -new -x509 -key cert.key -out cert.crt
+ (Specify the mitm domain as Common Name, e.g. *.google.com)
+> cat cert.key cert.crt > cert.pem
+> mitmproxy --cert=cert.pem
+</pre>
+
+
Installing the mitmproxy CA
---------------------------