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?