Adding support for SSL connections