Assuming I have multiple personal certificates for current user. But only one certificate belongs to Aladdin eToken.
I want to determine which certificate belongs to Aladdin eToken.
Should I use X509Store and X509Crtificate for this?
Should I try eToken SDK?
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.
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
Findmethod of theCertificatescollection to get matches.For example, if you're looking for a specific certificate, you can
FindByThumbprintorFindBySerialNumber.