我正在尝试使用stunnel设置 SSL 连接。某种 SSL 代理。
最终目标
将 http only CLIENT连接到 https only SERVER。
我的计划是
stunnel.conf
cert = /etc/stunnel/stunnel.pem
foreground = yes
chroot = /var/run/stunnel
setuid = stunnel
setgid = stunnel
pid = /stunnel.pid
debug = 7
[my_route]
accept = 7121
connect = SERVER:443
;connect = SERVER:443/somedata
Run Code Online (Sandbox Code Playgroud)
测试 1
$openssl s_client -connect SERVER:443
New, TLSv1/SSLv3, Server public key is 2048 bit
Run Code Online (Sandbox Code Playgroud)
测试 2
openssl s_client -connect PROXY:7121
New, TLSv1/SSLv3, …Run Code Online (Sandbox Code Playgroud)