Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C# - secure `sockets` with SSL

Tags:

c#

ssl

sockets

hi i have a socket connection (server) developed with methods available in

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

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

like image 290
Sudantha Avatar asked Jun 21 '11 11:06

Sudantha


1 Answers

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

like image 122
Darin Dimitrov Avatar answered Sep 25 '22 06:09

Darin Dimitrov