aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@corte.si>2018-04-27 11:20:20 +1200
committerGitHub <noreply@github.com>2018-04-27 11:20:20 +1200
commitbc3ace6082dd07edf4d44c834da78fa1b6a719d0 (patch)
tree5c5d34cb5640f438621471997f5c436b44815a9e
parentabc36a5f6ba1c8629beeb6cdbde780eed2233303 (diff)
parent93a59acaeb241b1efc150851f3367821c55dff7a (diff)
downloadmitmproxy-bc3ace6082dd07edf4d44c834da78fa1b6a719d0.tar.gz
mitmproxy-bc3ace6082dd07edf4d44c834da78fa1b6a719d0.tar.bz2
mitmproxy-bc3ace6082dd07edf4d44c834da78fa1b6a719d0.zip
Merge pull request #3082 from p1uymi/patch-2
Changed syntax of two options (from v2 to v3)
-rw-r--r--docs/src/content/concepts-certificates.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/src/content/concepts-certificates.md b/docs/src/content/concepts-certificates.md
index e6586576..d7f53127 100644
--- a/docs/src/content/concepts-certificates.md
+++ b/docs/src/content/concepts-certificates.md
@@ -143,14 +143,14 @@ mitmproxy --cert *.example.com=cert.pem
By default, mitmproxy will use `~/.mitmproxy/mitmproxy-ca.pem` as the
certificate authority to generate certificates for all domains for which
no custom certificate is provided (see above). You can use your own
-certificate authority by passing the `--cadir DIRECTORY` option to
+certificate authority by passing the `--set cadir=DIRECTORY` option to
mitmproxy. Mitmproxy will then look for `mitmproxy-ca.pem` in the
specified directory. If no such file exists, it will be generated
automatically.
## Using a client side certificate
-You can use a client certificate by passing the `--client-certs DIRECTORY|FILE`
+You can use a client certificate by passing the `--set client_certs=DIRECTORY|FILE`
option to mitmproxy. Using a directory allows certs to be selected based on
hostname, while using a filename allows a single specific certificate to be used
for all SSL connections. Certificate files must be in the PEM format and should
@@ -158,7 +158,7 @@ contain both the unencrypted private key and the certificate.
### Multiple client certificates
-You can specify a directory to `--client-certs`, in which case the matching
+You can specify a directory to `--set client_certs=DIRECTORY`, in which case the matching
certificate is looked up by filename. So, if you visit example.org, mitmproxy
looks for a file named `example.org.pem` in the specified directory and uses
this as the client cert.