C#-使用SSL保护`sockets` [英] C# - secure `sockets` with SSL

查看:52
本文介绍了C#-使用SSL保护`sockets`的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我使用

using System.Net.Sockets;
using System.Net;

是否可以确保此套接字中的数据通信安全?专门实现 SSL ?有什么例子吗?

is it possible to secure the data communication in this sockets ? specially implement SSL ? any examples ?

推荐答案

您可以使用

You could use an SslStream. The documentation link contains an example of a TCP server and a client which communicate over SSL.

这篇关于C#-使用SSL保护`sockets`的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆