Adding support for ssl