Skip to content

Instantly share code, notes, and snippets.

@Cyb3r-Jak3
Created May 26, 2023 19:43
Show Gist options
  • Save Cyb3r-Jak3/91f96c58be231cf2c256e1ec0f00d094 to your computer and use it in GitHub Desktop.
Save Cyb3r-Jak3/91f96c58be231cf2c256e1ec0f00d094 to your computer and use it in GitHub Desktop.
Configure to use mitmproxy from a docker container
#!/bin/bash
export HTTPS_PROXY=host.docker.internal:8080
mkdir -p /usr/local/share/ca-certificates/extra/
curl --proxy host.docker.internal:8080 http://mitm.it/cert/pem | openssl x509 -inform PEM -out /usr/local/share/ca-certificates/extra/mitm.crt \
&& update-ca-certificates
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment