我想在 Windows(XP 和 7)中为 IE、Firefox 和 Chrome 安装自签名证书。
我需要为多个系统安装证书,所以我打算创建 .bat 文件来为浏览器安装证书。谷歌搜索时我得到了以下命令
certutil -addstore -f -enterprise -user root root_ca.cer
但它仅适用于 IE。Chrome 和 Firefox 有什么选择。
我想在 Windows(XP 和 7)中为 IE、Firefox 和 Chrome 安装自签名证书。
我需要为多个系统安装证书,所以我打算创建 .bat 文件来为浏览器安装证书。谷歌搜索时我得到了以下命令
certutil -addstore -f -enterprise -user root root_ca.cer
但它仅适用于 IE。Chrome 和 Firefox 有什么选择。
有点旧的帖子,但我想无论如何我都会投入两美分。没错,批处理脚本中的该命令会将证书安装root_ca.cer
到受信任的 CA 存储中。我会将这一行修改为:
certutil -addstore -f -enterprise -user root "%~dp0root_ca.cer"
这样,shell 将扩展%~dp0
到执行脚本的路径,因此您可以从 UNC 路径通过网络运行它,它仍然可以工作。
在回答您的另一个问题时,Chrome 将(在撰写本文时)从 Windows 证书存储中读取,因此无需做任何特别的事情;运行脚本后只需重新启动 chrome,它应该很甜。
至于 Mozilla,请查看这篇文章以获取执行此操作的脚本。简单!