This depends on how Aladdin eToken signs certificates. If it issues an X509 Certificate with the Issuer field set to something identifiable (e.g. Aladdin eToken) then you should be able to find the certificate that way.
// Get the MY store for the current user
X509Store store = new X509Store(StoreName.My, StoreLocation.CurrentUser);
store.Open(OpenFlags.ReadOnly);
X509Certificate2Collection certs =
store.Certificates.Find(X509FindType.FindByIssuerName,
"Aladdin eToken");
That should get you all certificates which have the string "Aladdin eToken" in the issuer name. If you need to use different criteria to identify the certificate, there are heaps of other valid arguments you can pass the Find
method of the Certificates
collection to get matches.
For example, if you're looking for a specific certificate, you can FindByThumbprint
or FindBySerialNumber
.