Encrypt and Tunnel Traffic with SSL
Use stunnel to add SSL encryption to any network service.
(http://www.stunnel.org) is a powerful and
flexible program that, using SSL, encrypts traffic to and from any
TCP port in several different ways.
It can tunnel connections, much like SSH can, by providing
a local port to connect to. It will encrypt the traffic sent to this
port, forward it to a remote system, decrypt the traffic, and finally
forward it to a local port on that system.
Stunnel can also provide transparent
SSL support for
stunnel, simply run
./configure from the directory that was created
when you unpacked the archive file that you downloaded. Since
download and install that first if it is not already
installed. If you would like to
stunnel with TCP wrappers support or
install OpenSSL in a nonstandard location, you’ll
probably want to make use of the
--with-ssl command-line options for
For example, this will configure
include TCP wrapper support, using the OpenSSL installation under
./configure --with-tcp-wrappers --with-ssl=/opt/openssl
After the script runs, you’ll need to run
make to actually compile
You will then be prompted for information to create a
self-signed certificate. Not only will this certificate be self-signed, but it is valid for only one year. If this is not what you want, you should create ...