vertx / io.vertx.reactivex.core.net / NetSocket / upgradeToSsl

# upgradeToSsl

`open fun upgradeToSsl(handler: Handler<Void>): NetSocket`

Upgrade channel to use SSL/TLS. Be aware that for this to work SSL must be configured.

### Parameters

`handler` - the handler will be notified when it's upgraded

Return
a reference to this, so the API can be used fluently

`open fun upgradeToSsl(serverName: String, handler: Handler<Void>): NetSocket`

Upgrade channel to use SSL/TLS. Be aware that for this to work SSL must be configured.

### Parameters

`serverName` - the server name

`handler` - the handler will be notified when it's upgraded

Return
a reference to this, so the API can be used fluently