如何启用强私钥在C#编程的保护? [英] How can I enable strong private key protection programmatically in C#?

查看:90
本文介绍了如何启用强私钥在C#编程的保护?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何能实现以编程方式使用C#?


解决方案<添加X509Certificate2时设置了强私钥保护复选框certmgr.msc相当于/ DIV>

您将不得不安装的 X509KeyStorageFlags 当相应的导入证书(即 MachineKeySet UserProtected )。


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

解决方案

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

这篇关于如何启用强私钥在C#编程的保护?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆