Created
May 13, 2020 08:37
-
-
Save bagder/2c6145c4d1aa22629eed260275f95d24 to your computer and use it in GitHub Desktop.
run stunnel in front of the HTTP proxy to make you a HTTPS proxy
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/sh | |
cat <<EOF | stunnel -fd 0 | |
cert = $HOME/src/curl/tests/stunnel.pem | |
pid = `pwd`/stunnel.pid | |
foreground = yes | |
output = https-proxy.log | |
[https-proxy] | |
connect = 127.0.0.1:80 | |
accept = 127.0.0.1:8843 | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment