Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在寻找如何从 C# 客户端应用程序对 AD 执行智能卡身份验证。我需要使用智能卡登录应用程序。有人可以告诉我在哪里可以找到 API 吗?谢谢。
您可以使用序列化凭据调用登录用户:
但是要获得证书,您必须枚举 cryptoapi 容器,然后使用 CryptGetKeyParam(KP_CERTIFICATE) 访问证书