|
security
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Sign with SmartcardHi 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 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 > |
|||||||||||||||||||||||