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: http://msdn.microsoft.com/en-us/library/system.net.security.sslstream.aspx 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.
A:
Get a free SSL certificate from here, and see if that works for you.
Greg Hurlman
2008-08-21 19:01:33
+2
A:
I haven't found a simple way to do this yet, but I found this site helpful a few months back.
O'Reilly also published a book called Network Security Hacks (available on Safari) that has a section starting at Hack #45 on creating your own certificate authority.
Bill the Lizard
2008-08-22 12:11:27
A:
For anybody else attempting this the pkcs12 certificate created as detailed here openssl question and using the X509Certificate2.CreateFromCertFile method gets past the private key problem. Note I used openssl with cygwin on Windows.
sipwiz
2009-03-14 13:46:54