使用Javascript读取智能卡证书

fir*_*ild 7 javascript smartcard

我需要知道是否可以使用Javascript读取智能卡证书.NodeJS可以解决问题.我探索并发现了NodeJS插件

xml-crypto
Run Code Online (Sandbox Code Playgroud)

对于数字签名xml,它工作得很好,但我写了正确的路径到我的光盘上的certificate.pem(它不在智能卡上).那么如何使用智能卡呢?

Nik*_*ohl 0

有一个针对 pcsc-lite 的 node.js 绑定(如果您的代码在 Linux 上运行)

https://github.com/LudovicRousseau/node-pcsclite