Skip to content

Instantly share code, notes, and snippets.

@bagder
Created May 13, 2020 08:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bagder/2c6145c4d1aa22629eed260275f95d24 to your computer and use it in GitHub Desktop.
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
#!/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