[stunnel-users] Access an arbitrary https website on http://localhost:3000 via stunnel.

Hongyi Zhao hongyi.zhao at gmail.com
Thu Jan 14 05:51:15 CET 2016


Hi all,

Based on the descriptions on the following webpage:

http://plug.org/pipermail/plug/2015-August/033939.html

I do the following testing:

1- Complile and install the lastest stunnel, i.e., the stunnel-5.29.

2- Obtaining the root cert

    wget -q https://gist.githubusercontent.com/coolaj86/327cee3eee6fc119b389/raw/root.pem
-O /tmp/root.pem

3- Prepare the following config file for stunnel:

    pid = /tmp/stunnel-tlsvpn.pid

    client = yes
    verify = 1
    foreground = yes

    [tlsvpn]
    accept = localhost:3000
    sni = coolaj86.com
    connect = coolaj86.com:443
    CAfile = /tmp/root.pem

4- Starting the stunnel:

  $ stunnel ./stunnel-tlsvpn.conf

5- Testing:

At this moment, I use the firefox to open the following url:

http://localhost:3000

But the firefox will only give the following line in its windows:

Cannot GET /

Any hints on this issue?

Regards
-- 
Hongyi Zhao <hongyi.zhao at gmail.com>
Xinjiang Technical Institute of Physics and Chemistry
Chinese Academy of Sciences
GnuPG DSA: 0xD108493


More information about the stunnel-users mailing list