Following is my Setup for mutual SSL authentication for client/server console app on Windows 10:
- There is a server listener console app that only accepts TLS 1.0 connections.
- Client console application uses SslStream.AuthenticateAsClient to configure a secure connection and uses TLS 1.2 connection.
- I am using the following example for mutual SSL authentication: http://www.codeproject.com/Articles/326574/An-Introduction-to-Mutual-SSL-Authentication
Server code:
sslStream.AuthenticateAsServer(certificate, true, SslProtocols.Tls, true);
Client code:
sslStream.AuthenticateAsClient(hostName, certificates, SslProtocols.Tls12, true);
Error:
Exception: A call to SSPI failed, see inner exception.
Inner exception: The client and server cannot communicate, because they do not possess a common algorithm
Question:
When i change the SslProtocols to be same in client and server, i.e. TLS 1.0, SSL handshake is successful. Why does the handshake fail when the SSL protocol is different on client and server?