TLS 1.2 - The token supplied to the function is invalid
问题 I have this strange problem, SslStream.AuthenticateAsClient() throws following exception: System.Security.Authentication.AuthenticationException : A call to SSPI failed, see inner exception. ----> System.ComponentModel.Win32Exception : The token supplied to the function is invalid It happens only when Tls12 is required by the client: SslStream.AuthenticateAsClient(..., ..., SslProtocols.Tls12); Code works properly for Ssl3, Tls11 and Tls. Server certificate is self-signed and 'old'. It uses