Home All Groups Group Topic Archive Search About

Sign with Smartcard

Author
29 Aug 2005 10:31 AM
Francesco
Hi all,
   I always read example code to sign data with a private key inside a pfx
file but how I can set csp to get a user's private key directly from his
smartcard?

thanks advanced

Francesco

Author
29 Aug 2005 1:43 PM
Dominick Baier [DevelopMentor]
Hello Francesco,

you can't. Once the private key is on a smartcard there is no "legal" way
to retrieve that key again.

You can of course use the the smartcard for signatures.

..NET 2.0 has built in support for that (System.Security.Cryptography.X509)
- in 1.1 you have to use a library called CAPICOM from Microsoft.

---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com

Show quoteHide quote
> Hi all,
> I always read example code to sign data with a private key inside a
> pfx
> file but how I can set csp to get a user's private key directly from
> his
> smartcard?
>
> thanks advanced
>
> Francesco
>