How to send APDU to PCSC reader from web broswer using javascript
Asked Answered
C

1

3

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.

Cerate answered 7/9, 2015 at 7:43 Comment(0)
V
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.

Vaporize answered 9/10, 2015 at 10:4 Comment(4)
[chrome.usb][1] is good API but it does not contains the methods for Smart Card I/O operations. Though it is not the best approach, I'll further explore the possibilities if this could be extended to serve my purpose. Thanks for pointing out this API. :)Cerate
You can use the CCID protocol to perform PC/SC operations via the USB API.Vaporize
I've tried. On a regular Windows 7 x64 box, Chrome can't talk to the reader, the claimInterface() method errors out with an "access denied" message. I'll investigate further, but so far, the most promising course of action seems to be an extension coupled with a native appDalury
you should use the zadig generic usb driver, with the new WebUSB api instead.Vaporize

© 2022 - 2024 — McMap. All rights reserved.