Adding TLS/SSL support.