EDN Admin
Well-known member
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
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