How to set read permission on the private key file of X.509 certificate from .NET
This answer is late but I wanted to post it for anybody else that comes searching in here: I found an MSDN blog article that gave a solution using CryptoKeySecurity here, and here is an example of a solution in C#: var rsa = certificate.PrivateKey as RSACryptoServiceProvider; if (rsa != null) { // Modifying the … Read more