stunnel

From RaySoft

The stunnel program is designed to work as an SSL encryption wrapper between remote client and local 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 library for cryptography, so it supports whatever cryptographic algorithms you compiled into your library.[1]

Documentation

References