TLS 1.2 + C# + BouncyCastle example

1.3k Views Asked by At

I am trying to connect to server via TLS1.2 using .Net 2.0.

I have tried the bouncy castle tls client but getting ""Internal TLS error, this could be an attack"

TcpClient client = new TcpClient();

client.Connect(resolvedIpAddr, PORT_TLS_11);

Org.BouncyCastle.Security.SecureRandom sr = new Org.BouncyCastle.Security.SecureRandom(); 
TlsProtocolHandler handler = new TlsProtocolHandler(client.GetStream(), sr);

handler.Connect(new MyTlsClient());

Could some one please help us here by example or any other way. Also if any other lib/api for TLS1.2 support in .Net 2.0

0

There are 0 best solutions below