diff options
author | Sanchit Sokhey <djsan15@users.noreply.github.com> | 2016-10-14 08:16:12 +0530 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2016-10-13 19:46:12 -0700 |
commit | 61a1b96ca4bfa63ddbef65913ccd50b4327f90a6 (patch) | |
tree | 6ea0421dfe7e89ccfca92aaddab4266a57c37c16 /docs | |
parent | 8be0d78eaa104996474041bf709ea8aeb7f3637d (diff) | |
download | mitmproxy-61a1b96ca4bfa63ddbef65913ccd50b4327f90a6.tar.gz mitmproxy-61a1b96ca4bfa63ddbef65913ccd50b4327f90a6.tar.bz2 mitmproxy-61a1b96ca4bfa63ddbef65913ccd50b4327f90a6.zip |
Issue 1461 (#1609)
* doc changes
* doc changes
* doc changes
* doc changes
* Documentation updated
* Documentation for custom certificate updated
Diffstat (limited to 'docs')
-rw-r--r-- | docs/certinstall.rst | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/docs/certinstall.rst b/docs/certinstall.rst index 68ad59cc..d3539f60 100644 --- a/docs/certinstall.rst +++ b/docs/certinstall.rst @@ -130,9 +130,9 @@ mitmproxy-ca-cert.cer Same file as .pem, but with an extension expected by some Using a custom certificate -------------------------- -You can use your own certificate by passing the ``--cert`` option to +You can use your own certificate by passing the ``--cert [domain=]path_to_certificate`` option to mitmproxy. Mitmproxy then uses the provided certificate for interception of the -specified domains instead of generating a certificate signed by its own CA. +specified domain instead of generating a certificate signed by its own CA. The certificate file is expected to be in the PEM format. You can include intermediary certificates right below your leaf certificate, so that your PEM @@ -158,7 +158,18 @@ For example, you can generate a certificate in this format using these instructi >>> 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 + +Now, you can run mitmproxy with the generated certificate: + +**For all domain names** + +``>>>mitmproxy --cert *=cert.pem`` + +**For specific domain names** + +``>>>mitmproxy --cert *.example.com=cert.pem`` + +**Note:** ``*.example.com`` is for all the subdomains. You can also use ``www.example.com`` for a particular subdomain. Using a custom certificate authority |