c# - X509certificate2 安全警告
问题描述
当我尝试向 X509Store 添加新证书时,会出现警告。有成千上万的证书,警告窗口破坏了自动化
var store = new X509Store(StoreName.Root, StoreLocation.CurrentUser);
var someCert = new X509Certificate2();
store.Add(someCert);
在不更改我的StoreName和StoreLocation设置的情况下如何避免这种情况?
解决方案
简单的答案:你不能。对话框弹出调用在 Crypt32.dll 中硬编码。
推荐阅读
- kubernetes - Kubernetes - 将服务的公共 URL 获取到我的 ConfigMap
- vb.net - 在 WebException 中获取 HTTP StatusCode
- azure-devops - 在 VSTS 任务组中是否可以参数化一个复选框
- javascript - 绑定与 html 组件中显示的属性不同的属性
- python - Beautiful-soup find_all 无法为特定链接抓取任何内容
- ssh - 无法通过 ssh 进入 Google-Engine,循环连接
- python - 在python中用零填充.dat文件
- mysql - 将 SQL 内连接自定义转换为 Eloquent Laravel
- sql-server-2008 - 在计算列上使用触发器时从字符串转换日期和/或时间时转换失败
- javascript - 在 Vue 中导入组件