Hi all,
I am trying to establish a ssl socket using C#. I am fresh on this area and just trying to run the sample code on the msdn:
http://msdn.microsoft.com/en-us/libr...sslstream.aspx.
First, i create my certificate, i got MyKey.cer, MyKey.pvk, MyKey.pfx, I use MyKey.cer to run the server in commond like:
, server runs successfully. Then I run the client like
- sslclient.exe localhost MyKey.pfx
, connection wil be built, but throw a System.NotSupportedException on the server side.
I am not sure that I should use
- sslclient.exe localhost MyKey.pfx
to run the sslclient, I mean, probably I should use something to replace MyKey.pfx as the second parameter.
I also generate a pair of *.pem files to run my ssl program, there is the same problem that my server side can run but client side sucks, throwing the same exception.
Any suggestion on that? (Would be more helpful if someone can tell me how to use *.pem file to run the ssl program here)
Thank you and many thanks for the reading.