This expands after the @Alex message, obviously adds your own error handling
System.Net.Sockets.TcpClient TC = new System.Net.Sockets.TcpClient(); TC.Connect("mail.google.com", 443); using (System.Net.Security.SslStream Ssl = new System.Net.Security.SslStream(TC.GetStream())) { Ssl.AuthenticateAsClient("mail.google.com"); Console.WriteLine(Ssl.CipherAlgorithm); Console.WriteLine(Ssl.CipherStrength); } TC.Close();
I do not think that you can directly access SSL information from a web service, you will have to use this helper code to communicate directly with the host.
source share