Add TLS support.