openssl command-line tool can be used as a generic TLS/SSL client/server which connects to a remote host or accepts incoming connections using TLS/SSL.
It's Windows version can be downloaded at http://www.slproweb.com/products/Win32OpenSSL.html.
For example for the client:
For example for the server:
More details could be received using the
The detailed description of these modes can be found at:
This article provides a detailed explanation of the TLS/SSL protocol, specifically the handshake protocol, its associated messages and alerts, and the record protocol.
There are third-party SSL/TLS tools which can be used as an SSL/TLS proxy. For example, stunnel can be used for this purpose.