I have a USB token containing an encryption certificate which has a public key and private key. Now I want to create an application in C# through which I can find out the accessible certificate information. When I plug the USB token in, it is being detected, but no drive has been shown on the computers segment as it happens with the flash drives.
How can I read the certificate from the USB drive?
You can browse through a list of certificates with X509Store
class. It will give you not only the certification in you USB, but also in your computer. Then with X509Certificate2UI
you can select the right certificate from a graphical UI list.
This implementation example works fine to get started:
http://msdn.microsoft.com/en-us/library/system.security.cryptography.x509certificates.x509certificate2ui(v=vs.110).aspx