2021-09-07 12:48:28 +02:00
|
|
|
mitmproxy
|
|
|
|
=========
|
|
|
|
|
|
|
|
[mitmproxy][1] is a free and open source interactive HTTPS proxy.
|
|
|
|
|
|
|
|
```bash
|
|
|
|
$ docker-compose up -d
|
2024-04-22 09:54:57 +02:00
|
|
|
|
2021-09-07 12:48:28 +02:00
|
|
|
$ curl --proxy 127.0.0.1:8080 --cacert data/mitmproxy-ca-cert.pem https://www.google.com
|
2024-04-22 09:54:57 +02:00
|
|
|
|
|
|
|
$ curl https://localhost:8443/headers
|
|
|
|
{
|
|
|
|
"headers": {
|
|
|
|
"Accept": "*/*",
|
|
|
|
"Host": "httpbin.org",
|
|
|
|
"User-Agent": "curl/8.6.0"
|
|
|
|
}
|
|
|
|
}
|
2021-09-07 12:48:28 +02:00
|
|
|
```
|
|
|
|
|
2024-04-22 09:54:57 +02:00
|
|
|
> To install certificate globally, please read [this][2].
|
|
|
|
|
2021-09-07 12:48:28 +02:00
|
|
|
[1]: https://mitmproxy.org/
|
2024-04-22 09:54:57 +02:00
|
|
|
[2]: https://docs.mitmproxy.org/stable/concepts-certificates/
|