klyn.net.ssl.SSLSocket.upgrade
method
public static upgrade(socket as Socket,
host as String,
port as Int,
context as SSLContext = null) as SSLSocket throws SSLException:
Description

Upgrades an already-connected TCP socket to TLS.

This is required by protocols such as MariaDB/MySQL that start in clear text and switch to TLS after an initial capability exchange.