by kevin [kprice at gmail dot com] posted on 2004/07/22 |
|
It looks like others are having similar problems, but nobody is explaining them very well, so here's my crack at it:
I'm trying to set up a simple SSL Tcp server using the SecureTcpListener class.
I create a new certificate object out of a .cer file (created using makecert). I then bind it to the matching .pvk file, and all of that goes fine. I feed it into the SecureTcpListener object, but when I tell the object to start listening, I get the following:
An unhandled exception of type 'System.ArgumentException' occurred in org.mentalis.security.dll
Additional information: If a certificate is specified, it must have a private key.
If I look at the certificate object and look for the value it has stored for a private key, all I see is:
PrivateKey <error: an exception of type: {Org.Mentalis.Security.Certificates.CertificateException} occurred> System.Security.Cryptography.RSA
Does anyone have a solution, or at least some ideas? |