[stunnel-users] build static stunnel with openssl

Eric Eberhard flash at vicsmba.com
Sat Oct 6 02:41:36 CEST 2018

Make openssl and stunnel static.  That is what I do and I consider it MUCH smarter than dynamic.  I got tired of getting support calls because stunnel stopped working because the user installed a new openssl.  Static will always work.


Another piece of advice – do NOT put it on /usr/local/opensl or /usr/local/stunnel (or whatever the defaults are).  Before building make your OWN directories.  Our short name for our product is “met” so we use /usr/local/met/obj and /usr/local/met/bin for the object and binary files, respectively.  This ensures nobody will install over you.


This is also a real security issue mostly ignored.  Most people have heard of SQL injection (where SQL is modified to do what the developer never intended).  However, DLL injection (e.g. dynamic library injection) is a real problem.  I could easily install an openssl DLL that does exactly what it should do … and sends the same data in clear text (or with my own encryption) to my machine.  A thief could simply install one dynamic library and then OWN your data.




From: stunnel-users [mailto:stunnel-users-bounces at stunnel.org] On Behalf Of White Little
Sent: Sunday, September 30, 2018 11:33 PM
To: stunnel-users at stunnel.org
Subject: [stunnel-users] build static stunnel with openssl


Hi All 


I try to build a static (portable) stunnel that contain opensll.


I know there are some similar questions long ago, but I still fail on how to build it.


I try to link the stunnel to latest openssl,  so I download the openssl-1.0.2p and make it.


And then I type  ./configure --enable-static --with-ssl= openssl-1.0.2p_dir


And typing  make,  I found there is a stunnel binary under /src folder,  but it still not include the openssl.


Do I miss something that I did not notice?





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.stunnel.org/pipermail/stunnel-users/attachments/20181005/acd723c5/attachment.html>

More information about the stunnel-users mailing list