2

我想在实时和接受 Windows 服务器上安装证书。使用一些命令应该是可能的。我以前做过,但找不到。我认为这与“WinHttpCertCfg.exe”有关。

有人知道命令是什么,或者可以将我发送到某个网站。非常感谢..

4

3 回答 3

0

您可以使用命令行添加 Windows 证书存储:

certmgr.exe -add "Path\To\Cert\MyCertificate.cer" -s -trustedpublisher

当然,您将需要管理权限来执行此操作。

您可以在此处找到更多信息。

提示:如果您要添加自签名证书,您还需要添加证书派生的证书。(示例:如果您创建了自己的 CA 中间证书,则还需要将其添加到证书存储中)

于 2013-01-26T18:49:54.877 回答
0

我使它与以下命令一起工作:

certmgr.exe /c /add my_cert.cer /s root

仅供参考:https ://msdn.microsoft.com/en/library/e78byta0(VS.80).aspx

于 2016-06-28T02:42:25.403 回答
0

我已经在Windows 7Windows 10中对其进行了测试。这是命令:

certutil -f -addstore CA <file_with_extension_and_complete_path>

#certutil -f -addstore CA "D:\test\random.der"

谢谢。

于 2022-01-17T08:20:20.440 回答