How do I compile stunnel from sources?
First you must already have either OpenSSL or SSLeay compiled for your system. Stunnel itself does not have any cryptographic algorithms in it, instead it links against the functions contained in one of the two above packages. • FreeBSD: If you are on FreeBSD, then you may already have the sources to OpenSSL and stunnel on your system. Simply do the following: # cd /usr/ports/security/stunnel # make install It will compile and install both OpenSSL and stunnel for you. If you don’t have the necessary source files in your system, those are automatically fetched for you. Easy and convenient 🙂 • Unix in general: To install stunnel from the sources, download the tar files and place them in a temporary directory. Read the INSTALL file. Then do the following: # gzip -dc stunnel-3.8.tar.gz | tar -xvf – # cd stunnel-3.8 # ./configure # make # make install Assuming all went well you should now have stunnel installed in /usr/local • Windows: Stunnel is known to compile with the mingw compiler a