开发者

Active Directory smartcard authorization

开发者 https://www.devze.com 2023-02-24 05:47 出处:网络
Im looking how to perform smart card authentication against AD from C# client application. I need to make logon into ap开发者_开发百科plication using the smart card. Could somebody give me clue where

Im looking how to perform smart card authentication against AD from C# client application. I need to make logon into ap开发者_开发百科plication using the smart card. Could somebody give me clue where to find API for this? Thanks.


you can call logonuser with serialized credential:

  • the hash of the certificate will become the username
  • the PIN of the smart card will become the password

But to get the certificate, you will have to enumerate the cryptoapi containter then access the certificate using CryptGetKeyParam(KP_CERTIFICATE)

0

精彩评论

暂无评论...
验证码 换一张
取 消