i have a VPS and a running Stunnel service there, listening on port 80, on my client side, i have setup the stunnel and generated the .pem file succefully. Server conf:
;Certificate cert = /etc/stunnel/stunnel.pem ;Security Enhancement #pid = /var/run/stunnel.pid #chroot = /var/local/etc/stunnel #setuid = root #setgid = root ;output = /var/log/stunnel.log compression = zlib [SOCKS] accept = 80 connect = 666
client = yes compression = zlib sslVersion = SSLv3 [Stunnel] accept = 1337 connect = 192.208.*.*:80
The VPS is on KALI Linux and the my client is a Windows 8 x64. the error that the browser returns says that "the connection was reset".
Update 1 & Also The Answer: for later use guys, and i didn't know this at that moment u should run also a socks client/server on your VPS, like "shadowsocks", this channels your traffic through a port opened by the "server.py" and "local.py" in shadowsocks folder. the configuration is eaxy and it's well documented on github ( http://www.shadowsocks.org/ ). after running the shadowsocks just address the opened port by it to stunnel.conf and you are all set.