News  [SoftwareSite

Latest News
Older News
RSS Feed
 
Complete Projects
Useful Classes
Top Downloads
Message Board
AllAPI.net
 
Send Comments
Software License
Mentalis.org Buttons
Donate
 
Forums -> Security Library Forum
 
private key problem  
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?

by Pieter Philippaerts [Pieter at mentalis dot org]
posted on 2004/08/17

We've made some changes to the AssociateWithPrivateKey method. Can you verify whether the change solves the problem you're seeing?

 

Copyright © 2002-2007, The Mentalis.org Team. All rights reserved.
This site is located at http://www.mentalis.org/
Send comments to the webmaster.