TLS 1.2 + C# + BouncyCastle

廉价感情. 提交于 2019-12-10 10:42:26

问题


To support TLS 1.1 and above on WinCE we are using BouncyCastle library, but when making a connection it throws error "Internal TLS error, this could be an attack".

Can someone advice on this.

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());

来源:https://stackoverflow.com/questions/33776495/tls-1-2-c-sharp-bouncycastle

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!