You can attach SSL to an existing socket-stream by calling attach-ssl on the stream. attach-ssl ensures the OpenSSL library is loaded and seeds the Pseudo Random Number Generator (PRNG). The socket-stream SSL keyword arguments are processed by attach-ssl as described in Socket Stream SSL keyword arguments.
Detach SSL from a socket-stream and shut down the SSL with
For full descriptions see attach-ssl and detach-ssl.