Encrypting config files for deployment .NET

前端 未结 2 1170
囚心锁ツ
囚心锁ツ 2021-01-16 21:38

I have a windows service that reads from app.config

I want some settings to be encrypted, however, I don\'t want to use the ProtectedConfigurationProvider classes pr

相关标签:
2条回答
  • 2021-01-16 21:42

    You can use user-level RSA keys and export them to each machine. then the config file can be encrypted ahead of time, and the target machines already have the key.

    0 讨论(0)
  • Perhaps your central server can maintains a database of the private keys for all the end points, then it could use the specific machine key for that.

    A shared private key for all the machines is not going to be that secure.

    0 讨论(0)
提交回复
热议问题