title: What is the simplest way to implement encryption in WCF when using the netTcpBinding?
body: <p>I am implementing a WCF service which will be used (in part) within a private LAN.</p>
  
  <p>I will be using netTcpBinding and would like to implement some form of security on the communications, more specifically, it is important that the data be encrypted so that (for example) nobody could view the data being transferred across the network.</p>
  
  <p>I don't believe Windows authentication will be appropriate as the end user may not maintain their windows logins and roles rigorously enough to use them as authentication. Am I right in thinking this would make it inappropriate? Please correct me if I'm wrong.</p>
  
  <p><strong>My question is, what is the simplest way to implement encryption in a WCF service using the netTcpBinding? particularly when Windows credential type is not available.</strong></p>
  
  <p>I have tried experimenting with certificates (generating my own using makecert) but there is a distinct lack of tutorials and documentation describing how to do this from start to finish using TCP and hosting the service in something other than IIS. A lot of them talk you through how to generate the certificates in detail (and no two of these tutorials are exactly the same in this regard) and finish by saying something like </p>
  
  <blockquote>
    <p>use these to sign the service and client</p>
  </blockquote>
  
  <p>... well unfortunately that is the process I need a little more clarification on!</p>
  
  <p>Generally the certificates solution seems to be over the top and a little too much just to acheive encrypted data!</p>
  
  <p>Any help or corrections in any assumptions I might have made would be really appreciated.</p>