title: How do I set up a test cert for an SSL connection in .NET?
body: <p>I would like to create an SSL connection for generic TCP communication.  I think I figured out how to do it in the code, using the info here: <a href="http://msdn.microsoft.com/en-us/library/system.net.security.sslstream.aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/system.net.security.sslstream.aspx</a>
  What I'm having trouble with is creating a cert so I can test this out.  I tried makecert.exe testCert, and that created a cert, but apparently it doesn't have a private key associated with it.  So what I'm looking for is the simplest procedure to create a cert and get the connection to work.</p>