• I can access insecure sites:
curl -k https://self-signed.badssl.com
  • I can access a site with mitmproxy:
curl --proxy --cacert ~/.mitmproxy/mitmproxy-ca-cert.pem https://google.com

How can I combine this? I get the error when I try to access a self-signed site via mitmproxy:

curl --proxy --cacert ~/.mitmproxy/mitmproxy-ca-cert.pem -k https://self-signed.badssl.com

    <title>502 Bad Gateway</title>
    <h1>502 Bad Gateway</h1>
    <p>Certificate verify failed: self signed certificate</p>

1 Answer 1


Oh, my bad, that was so easy. I just obviously should have told the proxy that IT should ignore the certificate of the end site:

$ ./mitmdump --ssl-insecure

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .