I'm trying to replace an old Java applet that was used for digitally signing data in an ASP.NET application. 

I'm trying to access the private key from the client certificate, sign some data, and send the signed data back to the server.

I've been looking at [PKI.JS](https://pkijs.org/), but if there is a C# way to accomplish this with Blazor that would be one less external dependency.