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:
Expand|Select|Wrap|Line Numbers
- sslserver.exe MyKey.cer
Expand|Select|Wrap|Line Numbers
- sslclient.exe localhost MyKey.pfx
I am not sure that I should use
Expand|Select|Wrap|Line Numbers
- sslclient.exe localhost MyKey.pfx
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.