mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2025-02-07 10:40:09 +00:00
add documentation on how to use custom certificates
This commit is contained in:
parent
f0e96be142
commit
e99eaa3a19
@ -34,6 +34,20 @@ testing system or browser to trust the __mitmproxy__ CA as a signing root
|
|||||||
authority.
|
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
|
Installing the mitmproxy CA
|
||||||
---------------------------
|
---------------------------
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user