tls/auth bugfix