From e99eaa3a19eb67005e211f5cf54add2361ab9fe5 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Wed, 11 Dec 2013 14:04:45 +0100 Subject: [PATCH] add documentation on how to use custom certificates --- doc-src/ssl.html | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/doc-src/ssl.html b/doc-src/ssl.html index 68e9a57c3..03067c30e 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. + +
+> 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
+
+ + Installing the mitmproxy CA ---------------------------