Adding support for TLS/SSL.