upgradeToSSL

fun upgradeToSSL(host: String, port: Int, config: SslConfiguration)

Upgrades the current connection to use SSL/TLS.

Parameters

host

The hostname to verify against the SSL certificate.

port

The port number.

config

The SSL configuration to use.