Re: Removing smartcard certificates from the Microsoft Certificate Store (possible MCS API defect)



Hi Eric.

Thank you very much for the reply.

Eric Perlin [MSFT] wrote:
And it also comes at a price.
It means the cert picker will only work when the card is inserted.
As it is, you can select a SC cert regardless (for S-MIMIE or SSL for example) and the infrastructure will ask for the card when appropriate.

Please correct me if I'm wrong here but I do believe this is a design flaw in the Microsoft Certificate Store/API infrastructure. Here are two use cases of which only one is currently supported:


1. use case (the supported one):
--------------------------------

You have a friend and want to be able to verify files he signs and sends to you. You friend comes over, plugs in his smartcard, his certificate is automatically transferred over to the Microsoft Certificate Store, he takes out his smartcard and the system is set to go. You may now verify his signatures using his certificate at will.


2. use case (the unsupported one):
----------------------------------

A lawyer receives clients in his office. Every client is identified using his or her smartcard. When a client arrives to the office the client's smartcard is inserted into the lawyer's PC and the client's certificate is transferred over to the Microsoft Certificate Store. The lawyer and client do their thing, client takes out his smartcard and leaves.

The lawyer has his other 1999 clients so eventually his Microsoft Certificate Store contains 2000 different certificates + his own, totaling 2001 certificates all listed in the Microsoft Certificate Store and marked as having their private key data available.

At some point the lawyer wants to access some lawyer-network web site over SSL. He inserts his own smartcard into the system, starts up Internet Explorer and types in the web site address. Now Internet Explorer asks him which of the 2001 different certificates to use to establish an SSL connection to the lawyer-network web site when in fact only one of those certificates actually has private key data available while all the other 2000 certificates can only be used to access their public data since their respective smartcards are not currently connected to the system.

The choice of 2001 certificates represents a big problem. How is the
lawyer supposed to find his own certificate in that bunch of certificates? And why is he supposed to choose at all?


The use case above is one from an actual production system and an actual real-world problem. The lawyer office does not yet have that many smartcards distributed but will with time.

We haven't yet gotten to dealing with that problem through official means but it would be great if one could (and if Internet Explorer/Outlook would) display only those certificates that actually have their private key data available when such private key data is actually required.

One quick-fix we were thinking about was automatically removing such certificates from the Microsoft Certificate Store once their smartcards get plugged out. This would allow us to support use case 2. (which is more important in our scenario) at the cost of supporting use case 1. with those smartcards.

Hope this clears the situation up. And if anyone has a suggestion on how to approach this problem - we would be very glad to hear it.

Many thanks & best regards,
Jurko Gospodnetić
.



Relevant Pages

  • RE: SmartCard Your credentials could not be verified.
    ... This error happens on all client PCs, Smartcard login works fine on the ... I just can't work out why my client PC s think the server certificate is ...
    (microsoft.public.windows.server.general)
  • RE: Relative Security Provided by Cached Domain Credentials?
    ... So when a user logs on the w2k terminal using a smartcard + pin no (rather ... If it does then EFS ... profile currently logged on for the private certificate. ...
    (Focus-Microsoft)
  • Re: SmartCards
    ... Smartcards can contain many authentication id's. ... client certificates can be stored on the smartcard. ... The user must provide the PKI ... certificate. ...
    (Security-Basics)
  • Re: Setting up AD (W2K3) for SmartCard Authentication
    ... The SmartCards can log into on AD Forest, ... Looked that the article on 3rd party CA's, ... Does the certificate contain the user's UPN in the subject alternative name ... Does the DomainController's certificate contain the SmartCard Logon ...
    (microsoft.public.security)
  • Re: Key archival and smartcard CSP
    ... the first question is that does your smartcard ... CSP allow the public/private key pair to be imported into its own store? ... > - When the certificate has been issued, i get the container name and the ...
    (microsoft.public.platformsdk.security)

Loading