I am looking for a way to decrypt S/MIME emails on client-side. I specifically don't want client to share private key with the server and thus need to find a way for client to do everything on it's own.
I do not need to support multiple browsers, so employing something like window.Crypto that currently works only with Mozilla Firefox is completely fine. This is especially since browser on client will somehow need to access Certificate store that's on client computer (in order to access private key - with approval of user of course).
I am just lost as to where to start since it's almost impossible to find any example or tutorial on doing something like this, so any code you can share will be more than welcome.