SSL tunnel (stunnel) allows the applications, which do not support TLS stack, to build up TLS connection with another end point, which does support TLS stack.
Example of stunnel usage:
Create a simple fake HTTP server using nc command
Use stunnel to handle the TLS handshake coming from another side, which runs HTTPS protocol
The HTTPS request goes through stunnel and is delivered to nc listening port
rfc