How can I enable strong private key protection programmatically in C#?

后端 未结 1 1357
梦如初夏
梦如初夏 2021-01-25 09:30

How can I achieve the equivalent of setting the \"strong private key protection\" checkbox in certmgr.msc when adding an X509Certificate2 programmatically using C#?

相关标签:
1条回答
  • 2021-01-25 10:08

    You will have to setup the X509KeyStorageFlags accordingly when importing the certificate (i.e. MachineKeySet and UserProtected).

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