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
 
Certificate.PrivateKey issue with non-default CSP  
by Todor T
posted on 2005/06/23

First, let me say, this is a great product!

Now to the issue. After banging my head in the wall and opening a case at Microsoft, I found the source to my problem. I have a certificate with a private key that is stored in a CSP other than the default one. When decrypting data, it fails.

We've traced the issue to the following line (line 1102 in Certificate.cs):
cspParams.ProviderName = null; //provInfo.pwszProvName;

Is there a good reason the ProviderName is set to null? Setting it to pwszProvName solves my issue. Will you include this fix in the next release?

Also, how do I build a signed DLL? I can't find the key pair needed for signing the DLL.

 

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