开发者

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

开发者 https://www.devze.com 2023-02-08 16:43 出处:网络
How can I achieve the equivalent of setting the \"strong private key protection\" checkbox in certmgr.msc when adding a开发者_如何学编程n X509Certificate2 programmatically using C#?You will have to se

How can I achieve the equivalent of setting the "strong private key protection" checkbox in certmgr.msc when adding a开发者_如何学编程n X509Certificate2 programmatically using C#?


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号