PC/SC 数字签名功能
我正在尝试使用智能卡的 Micrisift API 签署 XML 文档...
到目前为止,我可以列出读卡器、连接到正确的卡并建立上下文,但之后我不确定接下来会发生什么... ...
我需要调用哪些 PC/SC 功能才能使用智能卡私钥签署文档?
预先感谢
哈维尔
I am trying to sign an XML document with the Micrisift API for the smart cards...
So far I can list the card readers, connect to the right card and establish the context but after that I am not sure what is next......
What PC/SC Functions Do I need to call to sign a document with a private smartcard key?
thanks in advance
Javier
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您安装了中间件,则可以使用 Windows CAPI 进行加密功能。 一些中间件还提供了可供您使用的 PKCS#11 库。
如果您没有任何中间件,则必须使用 PC/SC 接口自行完成,如果卡使用安全消息传递(或 Sado Machism),我建议您查看 ISO/IEC 7816-4 和 ISO/IEC 7816-8如果你问我)。 不幸的是,这些 ISO 规范相当昂贵,但是您可以找到 ISO/IEC 7816-4 的一些摘录 就在这里。
ISO/IEC 7816-4 描述了与卡进行信息交换的 APDU 命令。 PKCS#15 标准对于文件的存储方式也有很大帮助都存储在卡上。
此外,您可能需要卡制造商提供的完整规格。 如果幸运的话,您可以在
MuscleCard 项目或 OpenSC 项目(它们也都可以在 Windows 中运行)。If you have a middleware installed you can use the Windows CAPI for cryptographic functions. Some middlewares also ship a PKCS#11 library you can use.
If you don't have any middleware you have to do it yourself using the PC/SC interface, I suggest you look into ISO/IEC 7816-4 and ISO/IEC 7816-8 if the card is using Secure Messaging (or Sado Machism if you ask me). Unfortunately those ISO specs are quite expensive, however you can find some excerpts from ISO/IEC 7816-4 right here.
The ISO/IEC 7816-4 describe the APDU commands for information exchange with the card. The PKCS#15 standard can also be of great help regarding how files are stored on the card.
Also, you might need the full specification from the card manufacturer. If you are lucky you can find a plugin for your card in the
MuscleCard projector the OpenSC project (they both work in Windows too).