0
  • I can access insecure sites:
curl -k https://self-signed.badssl.com
  • I can access a site with mitmproxy:
curl --proxy 127.0.0.1:8080 --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 127.0.0.1:8080 --cacert ~/.mitmproxy/mitmproxy-ca-cert.pem -k https://self-signed.badssl.com

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

1 Answer 1

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.