How to extract X.509 certificate from a smartcard?

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hi,

Im newbie in smartcard world and my english is really bad (sorry!).

Anyway,
I need to read the X.509 certificate stored in a smartcard.
I have just installed the correct dll for the smartcard (CSP Provider) but I dont be able to find any method that allow to read the certificate x509.

In some examples that I found there is only RSA reading...
(http://msdn2.microsoft.com/it-it/library/ms229931.aspx)

  // Create a new CspParameters object that identifies a
  // Smart Card CryptoGraphic Provider.
  CspParameters csp = new CspParameters(1, "Schlumberger Cryptographic Service Provider");
  csp.Flags = CspProviderFlags.UseDefaultKeyContainer;
  RSACryptoServiceProvider rsa = new RSACryptoServiceProvider(csp);

...I believe that RSA key is into a X509 certificate but I dont found relation between X509Certificate and CSP.

I need to a reference or an example of read x509 cert by smartcard.

Can anyone help me?

Alex


View the full article
 


Write your reply...
Back
Top