Proof of Concept: Build my own Web Provider at home (III) – Stunnel
Stunnel
Please note latest versions of HAProxy can support Stunnels features with higher performance and lower complexity.

stunnel
The stunnel software is awesome. It allows you to encrypt any connection between local or remote systems. We will use it to perform the SSL Offloading for our system. This tool will take care of all the SSL encryption, releasing that burden from the web servers, because web servers are … well, web servers, not SSL managers.
We will use stunnel to:
- Listen for secure SSL connections on port 443 of our external IPs
- Manage the encryption/decryption
- Request (without encryption) the web page from the Web servers
- Send the request back to the client encrypted
From the Stunnel web page:
The stunnel program is designed to work as an SSL encryption wrapper between remote client and local (inetd-startable) or remote server. It can be used to add SSL functionality to commonly used inetd daemons like POP2, POP3, and IMAP servers without any changes in the programs’ code. Stunnel uses OpenSSL libraries for cryptography, so it supports whatever cryptographic algorithms you compiled into your library.
Stunnel can benefit from FIPS 140-2 certification of the OpenSSL library, as long as the building process meets its Security Policy.
Stunnel is a free software authored by Michal Trojnara. Although distributed under GNU GPL version 2 or later with OpenSSL exception, stunnel is not a community project. We retain the copyright of the source code. Please contact us for support or non-GPL licenses.
The obsolete 3.x branch is no longer maintained. Use stunnel3 perl script as a drop-in replacement for backward compatibility.
Ideally you could run your own farm of TLS/SSL Offloaders using their own hardware (in combination with a balancing software tools like HAproxy / Wackamole / Spread / UltraMonkey you can have your own home made High Availability Load Balancer). As mentioned before, this would allow you to release the encryption load from the Web tier.
Read More...