问题
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.
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.
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.
回答1:
You could use a Chrome App that will take advantage of the chrome.usb API.
It's not a web browser solution but your web page could communicate with the local Chrome App via Ajax.
The problem is to get a Smartcard Reader driver that will be recognized by the Chrome runtime.
来源:https://stackoverflow.com/questions/32433488/how-to-send-apdu-to-pcsc-reader-from-web-broswer-using-javascript