Added support for SSL.