Trusting individual invalid certs in mitmproxy

Viewed 140

I use mitmproxy to gather intel from outbound AS2 (HTTP) requests leaving our network. The schema goes like this:

Mendelson AS2 ➡ mitmproxy ➡ partner AS2 server
                          ↘
                           redis

Where possible, I need to verify all SSL certs to make sure the business connection is safe. Some partners use less known CAs which I then add to a truststore used by the ssl_verify_upstream_trusted_ca option.

Some partners though don't really care about security and I need to trust their certificates no matter what. How do I do that in mitmproxy? Disabling the verification entirely isn't an option.

Thank you.

1 Answers
Related