Add support for ssl connection