以编程方式将证书安装到 Mozilla [英] Programmatically Install Certificate into Mozilla

查看:30
本文介绍了以编程方式将证书安装到 Mozilla的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法以编程方式将证书安装到 mozilla 中?我们正在尝试编写一切脚本以消除环境偏差,因此通过 mozilla 首选项手动安装它不能满足我们的需求.我认为有一种方法可以使用 certutil 来实现,但我不确定 Mozilla 的内部结构等.

Is there a way to programmatically install a certificate into mozilla? We're trying to script everything to eliminate deviations in environment so installing it by hand through mozilla preferences does not work for our needs. I assume theres a way to do it with certutil, but I am not sure of Mozilla's internals, etc.

推荐答案

最简单的方法是将证书导入示例 firefox-profile 中,然后将 cert8.db 复制到您想要配备该证书的用户.

The easiest way is to import the certificate into a sample firefox-profile and then copy the cert8.db to the users you want equip with the certificate.

>

首先手动将证书导入sample-user的firefox配置文件中.然后复制

First import the certificate by hand into the firefox profile of the sample-user. Then copy

  • /home/${USER}/.mozilla/firefox/${randomalphanum}.default/cert8.db (Linux/Unix)

  • /home/${USER}/.mozilla/firefox/${randomalphanum}.default/cert8.db (Linux/Unix)

%userprofile%Application DataMozillaFirefoxProfiles\%randomalphanum%.defaultcert8.db (Windows)

进入用户 firefox-profiles.而已.如果要确保新用户自动获得证书,请将 cert8.db 复制到:

into the users firefox-profiles. That's it. If you want to make sure, that new users get the certificate automatically, copy cert8.db to:

  • /etc/firefox-3.0/profile (Linux/Unix)

  • /etc/firefox-3.0/profile (Linux/Unix)

%programfiles%firefox-installation-folderdefaultsprofile (Windows)

这篇关于以编程方式将证书安装到 Mozilla的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆