I have a Windows service that usually starts using a local system account (although in some installations it can be used as a specific user account).
The service uses WCF, with communication security using X509 certificates.
My question is: where is the best place to store the certificate (and private key)?
If using a certificate store is the best approach that should be used to provide access to the private key only for administrators and the service?
As an alternative, a simple option would be to simply save both the PFX file to disk and use access control lists to provide access only to administrators and the service. What are the pros and cons of this approach or the use of a certificate store?
EDIT
To clarify, I am using C # with the .NET Framework 3.5
source
share