fix --certs argument (#4412)

the help output claims that --certs is correct
This commit is contained in:
zivillian 2021-01-24 22:12:16 +01:00 committed by GitHub
parent 2694b05fe9
commit a793a6256a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -93,7 +93,7 @@ The files created by mitmproxy in the .mitmproxy directory are as follows:
## Using a custom server certificate ## Using a custom server certificate
You can use your own (leaf) certificate by passing the `--cert You can use your own (leaf) certificate by passing the `--certs
[domain=]path_to_certificate` option to mitmproxy. Mitmproxy then uses the [domain=]path_to_certificate` option to mitmproxy. Mitmproxy then uses the
provided certificate for interception of the specified domain instead of provided certificate for interception of the specified domain instead of
generating a certificate signed by its own CA. generating a certificate signed by its own CA.
@ -127,13 +127,13 @@ Now, you can run mitmproxy with the generated certificate:
**For all domain names** **For all domain names**
```bash ```bash
mitmproxy --cert *=cert.pem mitmproxy --certs *=cert.pem
``` ```
**For specific domain names** **For specific domain names**
```bash ```bash
mitmproxy --cert *.example.com=cert.pem mitmproxy --certs *.example.com=cert.pem
``` ```
**Note:** `*.example.com` is for all the subdomains. You can also use **Note:** `*.example.com` is for all the subdomains. You can also use