Add support for SSLed connections

As per our email, here is the support for SSLed connections.