Created
May 26, 2023 19:43
-
-
Save Cyb3r-Jak3/91f96c58be231cf2c256e1ec0f00d094 to your computer and use it in GitHub Desktop.
Configure to use mitmproxy from a docker container
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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