1

I want to read

certificate

from Digital Signature (USB token) in Javascript, i need both public and private key... ? Any help would be appreciated....

mayur saini
  • 209
  • 7
  • 17
  • In what environment do you want to do this? If your answer is "a browser" then you can't do it. – Reinstate Monica Cellio Jan 05 '18 at 10:12
  • yes in browser, like IE and chrome etc... – mayur saini Jan 05 '18 at 10:14
  • You have your answer then. – Reinstate Monica Cellio Jan 05 '18 at 10:14
  • 2
    but it is already being done in a different website, for filing taxes, in govt sites(like cleartax and other Indian Sites, where user just have to connect pen drive and the private key is automatically read and used for filing taxes...) – mayur saini Jan 05 '18 at 10:17
  • Is it using a Java Applet? Anyway check this https://developers.google.com/web/updates/2016/03/access-usb-devices-on-the-web – Claudio Jan 05 '18 at 10:29
  • Possible duplicate of [Javascript - key / certificate from USB Token](https://stackoverflow.com/questions/38605661/javascript-key-certificate-from-usb-token). See alternatives here https://stackoverflow.com/a/46194323/6371459 – pedrofb Jan 05 '18 at 10:42

1 Answers1

0

You may use Browser Extension to access USB Token form Javascript.

Extension provides for Signing, Encrypt/Decrypt, Generate CSR, Download Certificate, and many other functions.

Refer to this SO Answer for Signer.Digital Browser Extension Javascript APIs.

Bharat Vasant
  • 850
  • 3
  • 12
  • 46