How to find the physical certificate returned by CredUIPromptForWindowsCredentials?
Hello all, I'm a bit at a loss here. I'm in the process of implementing authentication in an application that allows other users than the current Windows user to log in. One of the goals is to support authentication using X.509 certificates on smartcards. I've tested and CredUIPromptForWindowsCredentials sees those certificates and allows me to enter the PIN to authenticate. So far so good, I've tested and am able to use the returned credentials to authenticate with A.D. The requirements for this type of login is to keep an eye on the smartcard reader and if the smartcard gets pulled out of the reader, the most recently logged in user is automatically logged off from my application. The problem I'm facing is that it is possible to have several smartcard readers connected to the computer and unless I'm able to know which reader has the certificate that was picked by the user using CredUIPromptForWindowsCredentials, I have no way of knowing which smartcard reader I should watch for smart card removal. A related topic of interest would be for me to be able to know in which local certificate store resides a certificate that can be chosen in the UI presented by CredUIPromptForWindowsCredentials - a.f.a.i.k. local certificates can be used as well for login, provided that the user knows the password. Thank you, eugen_nw
July 21st, 2010 11:08pm

Hi, Since it is a software development related question, please discuss in our MSDN forum. Security for Applications in Microsoft Windows Forum Additionally, the following article should be helpful. CredUIPromptForWindowsCredentials FunctionPlease remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Free Windows Admin Tool Kit Click here and download it now
July 23rd, 2010 1:02pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics