public static upgrade(socket as Socket, host as String, port as Int, context as SSLContext = null) as SSLSocket throws SSLException:
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.