certificate - certutil 未导入所有证书
问题描述
p12 文件,其中包含 7 个证书。按照证书文件随附的说明,我们必须使用 MMC 和密码将所有证书导入个人存储。说明还说要选中可导出私钥。
为了自动执行此操作,我尝试使用 certutil -importpfx 但仅添加了 7 个证书中的 4 个。我看不到其他 3 个证书。我注意到的差异是导入的证书是带有“ext 颁发 CA”的证书,而缺少的证书是在 Subject 中带有“颁发 CA”的证书。
请任何指点
解决方案
我找到了使用 powershell 而不是 certutil 的替代解决方案。带有标志的 Import-pfx -exportable 导入了所有证书。
Import-PfxCertificate -CertStoreLocation Cert:\LocalMachine\My -Password $Securepwd -FilePath $findP12Cert.FullName -Exportable -Verbose
推荐阅读
- python - 有向图可以有两个 DFS 遍历吗?
- node.js - 如何更改 File Watcher 的 WebStorm 环境设置?
- c# - 如何绑定对象
- azure - 如何设置自动 nuget 版本增量
- javascript - 如何在 yii2 的 Javascript 中给出外部 csv 文件的路径?
- python - 提高索引搜索和删除的性能
- android - 多个主机片段 - 导航 Android Jetpack
- angular - 将表单发布到服务器时未设置值
- matlab - 如何从矩阵中的索引获取距离为 N 的邻居列表?
- javascript - 如何从我自己的库中的第三方 JavaScript 库中导出所有内容?