Re: Questions about smart card minidriver



Hi Jan,

I've developed a smart card minidriver, how can the certificates in the
smart card be propagated to system store?

Typically, on Windows XP and up, there is a certificate propagation
service
(on XP and Windows Server 2003 as part of winlogon.exe, on Vista as a
separate service), which will automatically add new certificates on an
inserted smart card to the user's certificate store. Unless certificate
propagation has been switched off, there's nothing you have to do to get
the
certificates into the user's store.
(This happens through reading the mscp\cmapfile (to get the list of used
key
containers on the smart card) and then reading the mscp\k?c?? files that
contain the actual certificates.)


I tested my minidriver on several operating
systems(win2000,winxp,server2003,vista),the certificates doesn't apear when
I open the certificate manager in IE.
I guess it's "HKLM\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\Winlogon\Notify\ScCertProp" on XP and 2003,and
"certificate propagation" service on vista,but they seem not work properly.
How can I switch them on?

Then I wrote a simple certSP, but it acts differently on different
platforms:
1.On win2000,every certificate apears only once.
2.On winxp and 2003,certificates apear once on some machine.all in the
physical store registered by my certSP.But on the other machines,the
certificate of *default* container apears twice,one in the registry
store,another in the physical store .
3.On vista,all certificates apear twice.


How can the certificates be
imported to or deleted from the smart card? Is a user-defined
certificate
store provider necessary to accomplish these works?

Certificate import onto the smart card can happen when you are using
certificate authority web pages. A typical CA web application will
generate
a key pair, create a certificate for your public key and then store the
certificate on the card, if you have selected the Microsoft Base Smart
Card
CSP as a CSP. This happens through CardCreateContainer and CardWriteFile
calls to your card module. You don't have to do anything special for this
either.

Yes,the CA does store data on smart card through my minidriver.
But users of my smart card may want enroll a certificate using other
CSPs,and import it through "Microsoft Base Smart Card CSP" into the card.
And what is important is,when the users want delete a single certificate
from the card,there is no way.

If you are looking for a GUI application to manage keys and certificates
on
the smart card; you will probably have to create one for this. I don't
think
there are any such tools available yet in any of the resource kits.

:-(
Since the minidriver interface is provided by Microsoft while the data
format is tansparent to the vendors,I think Microsoft will write one sooner
or later.

Cheers,
Jan.
Thanks ,Jan.


Dave


.



Relevant Pages

  • RE: SmartCard CSP and CA certificate enrollment
    ... The Microsoft CA will not put your certificate anywhere. ... Now if you use the standard method with the smart card CSP than the CSP ... The CSP can put the cert into the local store the same time when it ... on the card into the cert store on the computer. ...
    (microsoft.public.platformsdk.security)
  • Re: smart card private key
    ... first storing the certificate information and the private key ... information in the system store. ... first of it the name of the CSP module that manages that key. ... information about the private key present on the smart card before ...
    (microsoft.public.platformsdk.security)
  • Re: smart card private key
    ... first storing the certificate information and the private key ... the cert shall be present in the cert store to allow the selection of the associated key in a signature process. ... the key container shall also be declared with relevant information - the first of it the name of the CSP module that manages that key. ... information about the private key present on the smart card before ...
    (microsoft.public.platformsdk.security)
  • Re: Using smartcard as certificate store
    ... > Troubleshooting Certificate Status and Revocation whitepaper: ... > Windows Server 2003 web enrollment and troubleshooting guide: ... We want to store certificates acquired when accessing ... >> secure website in smart card. ...
    (microsoft.public.platformsdk.security)
  • RE: Problems enabling smart card login on windows 2000
    ... Bad Certificate; ... Troubleshooting Windows 2000 PKI Deployment and Smart Card Logon ... | - Installing a Windows 2000 Server as a Domain Controller ...
    (microsoft.public.win2000.security)