0

We have a custom Java applet that performs certain tasks, like loading a PDF from local filesystem, signing it with certificates from system KeyStore/smart card etc. Such actions are not possible in regular HTML/JavaScript. Now that Java is being deprecated across browsers, we are looking for possibilities to replace the applet functionality.

There is this Web Cryptography API, but unfortunately the spec does not cover using system keystore. There is another spec for this, WebCrypto Key Discovery, but I don't think it is currently supported by any browser.

Mozilla had an API that might be exactly what we need, but unfortunately it is deprecated now.

So it looks like our only options are:

  • Write a custom desktop GUI app
  • Write a custom browser plugin

Or is there some better solution? What do you suggest? I don't care if the solution would be only for Internet Explorer since most of our users use.

Martin S
  • 378
  • 2
  • 10

1 Answers1

2

Due to Java restrictions on browsers is not possible in general to use the OS native Key Store. You still can use Java in old versions of IE and Firefox, but Oracle has announced that will discontinue JRE plugin for browser, and Firefox decided to drop java support in 2017, so it is not recommended

Write a browser plugin is not possible because browsers do not allow access to several OS functions. In particular Chrome plugin API only allow access to user certificates in Chrome OS, not in Windows or Linux. For Edge, I think the plugin interface is not available yet.

There are some alternatives

I personally have tested the first and the last options. For Estonian solution, I suggest to contact with the team. I think the currently support only some smartcards

Community
  • 1
  • 1
pedrofb
  • 37,271
  • 5
  • 94
  • 142