【问题标题】:X509certificate2 security warningX509certificate2 安全警告
【发布时间】:2021-06-23 00:47:19
【问题描述】:

当我尝试向 X509Store 添加新证书时,会出现警告。证书数以千计,警告窗口破坏了自动化

var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser);
var someCert = new X509Certificate2();
store.Add(someCert);

如何在不更改我的 StoreNameStoreLocation 设置的情况下避免这种情况?

【问题讨论】:

    标签: c# .net x509certificate2


    【解决方案1】:

    简单的答案:你不能。对话框弹出调用在 Crypt32.dll 中硬编码。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-04-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多