I have a problem implementing "AuthenticateAsServer" method.
X509Certificate2 cert = new X509Certificate2("C:\\certnew.cer"); SslStream mySSLStream = new SslStream(myclient.GetStream); mySSLStream.AuthenticateAsServer(cert, True, SslProtocols.Ssl2 || SslProtocols.Ssl3 || SslProtocols.Tls, true); |
As it is obvious the certification is invalid (missing private key).
does anyone know how to export a pfx file or something like that from Microsoft CA (only) that will be valid for "AuthenticateAsServer" method
thanx in advance

AuthenticateAsServer Method
Chuck B
http://support.microsoft.com/ id=901183
Futzy
finally i've manage to export the pfx file from
mmc/certificates.
Twindagger
In order to do this, you need to original certificate and it should be marked with exportable private keys. Then you can export the .pfx file from the MMC/Certificates snap in.
If the certificate private keys are not marked exportable, then you will not be able to export the private keys and hence no .pfx