Skip to content

Instantly share code, notes, and snippets.

@grittyninja
Created November 29, 2025 13:32
Show Gist options
  • Select an option

  • Save grittyninja/46bfe213821a082467bf14f4bd57208e to your computer and use it in GitHub Desktop.

Select an option

Save grittyninja/46bfe213821a082467bf14f4bd57208e to your computer and use it in GitHub Desktop.
$ mitmdump -w capture.mitm --set ssl_insecure=true --listen-port 8888
----
export HTTP_PROXY=http://127.0.0.1:8888
export HTTPS_PROXY=http://127.0.0.1:8888
export NODE_TLS_REJECT_UNAUTHORIZED=0
export REQUESTS_CA_BUNDLE=~/.mitmproxy/mitmproxy-ca-cert.pem
export SSL_CERT_FILE=~/.mitmproxy/mitmproxy-ca-cert.pem
export PYTHONHTTPSVERIFY=0
sudo security add-trusted-cert -d -p ssl -p basic -k /Library/Keychains/System.keychain ~/.mitmproxy/mitmproxy-ca-cert.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment