我正在使用.net 1.1,我无法升级。
是否有一些替代方案(在.net 1.1中)使用SSL将客户端连接到大型机3270?只使用.net 1.1库或cs文件而不安装任何东西?
我尝试了open3270库,我可以在没有SSL的情况下连接。但是当需要SSL时,连接就会丢失。
来自open3270库的代码不起作用......
if (this.Config.UseSSL)
{
NetworkStream mNetworkStream = new NetworkStream(socketBase, false);
SslStream ssl = new SslStream(mNetworkStream, false, new RemoteCertificateValidationCallback(cryptocallback));
ssl.AuthenticateAsClient(this.address);
this.socketStream = ssl;
}
if (this.Config.UseSSL)
{
NetworkStream mNetworkStream = new NetworkStream(socketBase, false);
SslStream ssl = new SslStream(mNetworkStream, false, new RemoteCertificateValidationCallback(cryptocallback));
ssl.AuthenticateAsClient(this.address);
this.socketStream = ssl;
}