Groups | Blog | Home
all groups > dotnet security > august 2005 >

dotnet security : Sign with Smartcard


Francesco
8/29/2005 3:31:12 AM
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

Dominick Baier [DevelopMentor]
8/29/2005 6:43:14 AM
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

[quoted text, click to view]


AddThis Social Bookmark Button