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.