• 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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.