Sign data using smart card's private key with ASP.NET, Windows Authentication, and Impersonation

后端 未结 3 1630
既然无缘
既然无缘 2021-01-07 03:36

I want to know if it is possible to sign data using a smart card\'s private key without resorting to a java applet or activex control.

I am tant

3条回答
  •  旧巷少年郎
    2021-01-07 03:51

    The reason you are getting access denied is because you are trying to access the private key and have not passed the PIN to the card. (I believe)

    Private Key functions require the PIN. Also.. You need to Acquire the card context using the winscard.dll

    You can check this out.

    http://msdn.microsoft.com/en-us/library/windows/desktop/aa379886(v=vs.85).aspx

    You also need to use the Smart Card CSP.. Windows has a native one in 7 and above called the smart card mini driver.

    I am attempting the same thing ... If I get further I will post back a sample...

提交回复
热议问题