Looks like I had a really old version I had to download and compile it
manually because for some reason it wasn't in the repos.
wget https://www.stunnel.org/downloads/stunnel-5.22.tar.gz
pushd ./stunnel-5.22
./configure
make -j 4
sudo make install
Here's the root cert
wget -q
https://gist.githubusercontent.com/coolaj86/327cee3eee6fc119b389/raw/root.pem
-O /tmp/root.pem
Here's the config file
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
Testing
stunnel ./coolaj86.com.stunnel.conf
curl localhost:3000 -H 'Host: coolaj86.com'
That works as expected. Yay!
AJ ONeal
(317) 426-6525
/*
PLUG: http://plug.org, #utah on irc.freenode.net
Unsubscribe: http://plug.org/mailman/options/plug
Don't fear the penguin.
*/