CertMgr 成功但无法在管理计算机证书中找到

CertMgr Succeeded but cannot find in Manage Computer Certificates

我有一个自签名本地主机证书的根证书,需要安装在本地计算机受信任的根证书颁发机构中。我有以下命令来完成工作

certmgr.exe -add -all -c rootCert.cer -s -r localmachine trustedrootcertificationauthorities

在命令行中显示CertMgr Succeeded,但我找不到证书。

然后我双击根证书并使用证书导入向导。导入证书后,我可以在受信任的根证书颁发机构中看到证书。

有人可以帮忙吗?我想让 certmgr.exe 工作。

谢谢

终于明白了。命令应该是

certmgr.exe -add -all -c rootCert.cer -s -r localmachine root