From charlesreid1

Mac

On mac you can install stunnel with homebrew:

$ brew install stunnel

If it gets crusty, update it. If links break or brew says, Warning: stunnel-X.Y.Z already installed, it's just not linked, update stunnel to the latest using:

$ brew link --overwrite stunnel

Linux

Download source from: https://www.stunnel.org/index.html

$ # for the impatient
$ ./configure && make && make install

Or just use aptitude:

$ apt-get install stunnel

Docker

Dockerfile for a simple stunnel container that imports keys and config file from outside the container: http://git.charlesreid1.com/docker/d-stunnel