One of the way to protect the data of the user visiting your website or accessing you application through network is by using SSL. SSL Also know as Secure Socket Layer. SSL was first developed by netscape. It was enhanced from version 1.0 to 3.0. Its latest version is known as TLS (Transport Layer Security) 1.2. for further details visit
http://en.wikipedia.org/wiki/Transport_Layer_Security
From the framework 2.0 it is also provided as the part of the libraries and with that we can develop our server or client application further on that. The class used for purpose is SslStream and it available in System.Net.Security namspace. For developing a server running on SSL we need a SSL certificate which contains the public and the private key. Sample for the server and the client application with complete information on the SslStream class is available in MSDN
http://msdn.microsoft.com/en-us/library/system.net.security.sslstream.aspx
In the 2 Part of this post i will try to put a sample application(server and client) working on the SSL
Image may be NSFW.
Clik here to view.

Clik here to view.
