Adding support for SSL