I have had a project set on my desk that I am not quite sure how I am going to accomplish. Essentially what I have been asked to do is, more or less, create a Smartcard authentication system where a User would type their username and password to log into windows as normal, however, along with that information that is getting sent to AD I would also need to send a PKI that is stored on USB drive or Smartcard.
I can use P/Invoke to get a handle that will let me grab the logon screen if I run a service in the background and, I am sure, after some research I could figure out how get the information that the user supplies in that window (My only expereience with this is writing information TO the window, not collecting data from)
So, my questions are:
1. How can I grab the PKI off the USB/Smartcard?
2. How would I go about transmitting the logon credentials along with the PKI to AD/Certificate Server?
I am, obviously, not looking for source code if someone could just tell me which APIs i need to take a look at to achieve this functionality, that would be much appreciated.
(I have looked into the CAPICOM assembly and while it will generate certificates for me, it does not provide near the level of functionality I am being required to work with.)
Any help would be much appreciated!
Read this if you want to know how to get a correct reply for your question:
^^Took that from planoie's profile^^
^^Modified text taken from gbianchi profile^^
Technical Editor for: Professional Search Engine Optimization with ASP.NET
Why can't Programmers, program??