如何使用javascript从web broswer发送APDU到PCSC阅读器

如何使用javascript从web broswer发送APDU到PCSC阅读器

问题描述:

问题:使用javascript将APDU从网页发送到PCSC阅读器。

Problem: Sending APDUs from webpage to PCSC reader using javascript.

我没有太多的声誉来评论问题所以我在问新问题。

I don't have much reputation to comment on a question so I am asking new question.

我已经尝试/搜索过专家提供的大部分解决方案。

I have tried/searched most of the solutions provided by experts.

cslashm在问题
看起来对我的要求很好。但是,我无法执行此解决方案。

The solution provided by cslashm in question looks good for my requirement. But, I am not able to execute this solution.

请指导我使其工作或提供其他类似解决方案。

Please guide me to make it work or provide some other similar solution.

目前,我成功使用使用带符号的java applet和javascript的Java Applet方法。由于安全问题,大多数浏览器将很快停止支持java插件。所以,我正在寻找与PCSC进行通信的独立于浏览器和标准的方式。

Currently, I am successfully using Java Applet approach which uses signed java applet along with javascript. Support of java plugin will be discontinued soon from most of the browsers due to security issues. So, I am looking for browser independent and standard way to communicate to PCSC.

您可以使用Chrome应用程序来利用 chrome.usb API。

You could use a Chrome App that will take advantage of the chrome.usb API.

这不是网络浏览器解决方案但是您的网页可以通过Ajax与本地Chrome应用程序进行通信。

It's not a web browser solution but your web page could communicate with the local Chrome App via Ajax.

问题是获得Chrome运行时可识别的智能卡读卡器驱动程序。

The problem is to get a Smartcard Reader driver that will be recognized by the Chrome runtime.