Setup ssl correctly when using a TLS connection
Before startSsl was only called when using a STARTLS connection and upgrading from an unencrypted connection to a TLS connection. This now ensure this is also called when using a normal TLS connection.