In a live system, we are making multiple connections to various MSSQL servers using the SqlConnection
object in C#.
As a client is in the process of updating their SQL servers to TLS 1.2, I would like to know if there is a way to determine which implementation of TLS is in use on an active connection.
I would like to achieve this entirely in C# if possible, but can use alternative languages so long as the end result is a self contained application.
The purpose of this is to provide the client with a quick test tool which will help in ensuring that the software is working correctly with TLS 1.2 on an integration environment before the changes are made to the live system.
I have spent several hours looking into this, but am so far unable to find anything helpful. All the resources I have found are aimed at ASP developers, and do not go into detail on connecting directly to the SQL server in a desktop application.
The application is using .NET 4.5, so TLS 1.2 should be available.
Many thanks