Add support for ssl.