Fix TLS authentication