Make TLS support work