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 not getting included  
by Shalabh Goel [sgoel at pacificlife dot com]
posted on 2004/10/29

I have the following code. I am always getting a false when looking for the private key.

CertificateStore certStore = new CertificateStore(CertificateStore.MyStore);
Certificate cert = certStore.FindCertificateBySubjectString("TEST");
bool boo = cert.HasPrivateKey();
string name = cert.GetIssuerName();

by Pieter Philippaerts [Pieter at mentalis dot org]
posted on 2004/11/19

Are you sure that the certificate in the store is associated with a private key? Does your user have the appropriate permissions to access the private key?

 

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