是否有一个简单的命令行客户端可以像这样调用:
http2https --listen localhost:80 --connect example.com:443
Run Code Online (Sandbox Code Playgroud)
这将允许我https://example.com
通过实际连接到来有效地连接到http://localhost
?它需要在 Windows 上运行。
我尝试过 stunnel,但似乎不起作用。
更新:
这是输出stunnel.exe -c -r google.com:443 -d 127.0.0.1:8888
No limit detected for the number of clients
stunnel 4.56 on x86-pc-msvc-1500 platform
Compiled/running with OpenSSL 1.0.1e-fips 11 Feb 2013
Threading:WIN32 Sockets:SELECT,IPv6 SSL:ENGINE,OCSP,FIPS
Reading configuration from file -c
Cannot read configuration
Syntax:
stunnel [ [-install | -uninstall] [-quiet] [<filename>] ] | -help | -version | -sockets
<filename> - use specified config file
-install - install NT service …
Run Code Online (Sandbox Code Playgroud)