c# - Read certificates from a PKI card -
how can read certificates pki card?
i tried finding answer on internet didn't results.
any ideas how certs pki card?
i need sign forms certificate key. happen in web app.
later...
i didn't tried because don't have point start. i've learned of certs read windows when insert card. way think can them using x509store. i'll try , i'll still i'm in need of help.
as plugin in smartcard certificates copied local, personal certificate store. can use "certmgr.msc" (run -> enter) have @ these certs.
you can access certificates, associated private keys, x509store. of course can locally on machine due security reasons. imagine every website have access private keys... how sign , verify signature .net , certificate (c#)
if using capicom, still need execute code on local machine (javascript). find following statement here :
[capicom 32-bit component available use in following operating systems: windows server 2008, windows vista, windows xp. instead, use .net framework implement security features. more information, see alternatives listed below.] important none of alternatives capicom offer solution scripts; therefore, must write own activex control. more information, see activex controls.
which indicates .net classes not "full" replacement capicom. can't use "x509" classes in javascript.
if want use client side private certificate sign data (assume hash), need run code on client. here ideas do:
- write activex control
- write browser plugin(s)
- write application can called using custom uri schema (can't post link, google , find it).
of course need retrieve data on server side , last solution may need kind of webservice.
conclusion
don't confused private , public keys certificate. there scenarios send certificate server e.g. authentication. public key. should never send private key around (of course technically possible).
Comments
Post a Comment