I searched a bit, found various tools for checking weak ciphers. How to determine which ciphers / algorithms supported by the server through .net / C #?
I can check sslv2, sslv3 and tls via (ssl.protocols.ssl2 / ssl3 / tls):
TcpClient client = new TcpClient();
client.Connect("host", 443);
using (SslStream Ssl = new SslStream(client.GetStream()))
{
Ssl.AuthenticateAsClient("host", null, System.Security.Authentication.SslProtocols.Ssl3, false);
Console.WriteLine(Ssl.CipherAlgorithm);
Console.WriteLine(Ssl.CipherStrength);
Console.WriteLine(Ssl.SslProtocol);
}
client.Close();
How to check algorithms and other weak ciphers through C #? I am looking at SSLDiagnos, but is it in c?
Any ideas?
source
share