Add support for TLS connections