发布于 2022-06-22 21:34:48
--ssl参数要求您传递给它一个SSL证书及其相应的密钥文件--在它的帮助文本中也有简短的描述。
pproxy --help
# ... etc ...
--ssl SSLFILE certfile[,keyfile] if server listen in ssl mode如果要创建测试证书,可以在本地创建并使用自签名证书。
mkdir pproxy_test
cd pproxy_test
# One-line command to generate a self-signed cert, valid for 365 days
openssl req -x509 -sha256 -nodes -newkey rsa:4096 -keyout server.key -out server.crt -days 365 -subj "/CN=example.com"
# now run proxy and pass it the cert and key we just made
pproxy -l http+ssl://:8181 -r socks5://127.0.0.1:9050 -vv --ssl server.crt,server.key您的SSL代理应该启动:
pproxy -l http+ssl://:8181 -r socks5://127.0.0.1:9050 -vv --ssl server.crt,server.key
Serving on :8181 by http(SSL)
DIRECT: 0 (0.0K/s,0.0K/s) PROXY: 0 (0.0K/s,0.0K/s)这是一个完整的演示..。
socks5代理
pproxy -l套接字5://:9050 -vvcurl通过SSL代理
curl -k --代理不安全的https://localhost:8181 example.com #这给了我example.com的头版curl通过SOCKS5代理
curl -x套接字5://localhost:9050 example.com #也给我取了example.com的头版https://stackoverflow.com/questions/72722142
复制相似问题