I have a web server that allows access only using X509 authentication. Works like a charm. Now I want to extend the use of the X509 certificates (which are stored in the user's browser keystore) to
- Sign data before it is sent to the server (using JavaScript and HTTPPost)
- Decrypt data read from the server (where it gets encrypted using the user's public key stored there)
I found this example doing RSA Signature which is pretty close.... only it does take the key from a HTML textarea. I want to read it from the key store. Now crypto is quite in flux:
I'm looking for some working examples for signature and encryption (I have some in Java, but not browser based JavaScript).
Help is very much appreciated