Hi - I retied to use CertificateStore.FindCertificates to get existing certificate for email signing. However, it never returns any certificate back from My store no matter what find options I used. My code looks like this:
CertificateStore certStore = new CertificateStore(CertificateStoreName.My); //search from personal cert store
CertificateFindOptions findOptions =
CertificateFindOptions.IsTimeValid; //I started with one by one, and even I combine them all nothing works.
Certificate certs = certStore.FindCertificates(findOptions);
My questions are:
1) is there a way to list out all the certificates in the store? that way I can filter by CN name
2) Is there a way to convert certificate obtained from X509 store into Rebex Certificate class?
Quick response is very appreciated. thanks!