Add support for ssl