首页 > 解决方案 > certutil 未导入所有证书

问题描述

p12 文件,其中包含 7 个证书。按照证书文件随附的说明,我们必须使用 MMC 和密码将所有证书导入个人存储。说明还说要选中可导出私钥。

为了自动执行此操作,我尝试使用 certutil -importpfx 但仅添加了 7 个证书中的 4 个。我看不到其他 3 个证书。我注意到的差异是导入的证书是带有“ext 颁发 CA”的证书,而缺少的证书是在 Subject 中带有“颁发 CA”的证书。

请任何指点

标签: certificate

解决方案


我找到了使用 powershell 而不是 certutil 的替代解决方案。带有标志的 Import-pfx -exportable 导入了所有证书。

Import-PfxCertificate -CertStoreLocation Cert:\LocalMachine\My -Password $Securepwd -FilePath $findP12Cert.FullName -Exportable -Verbose


推荐阅读