以编程方式将证书安装到Mozilla [英] Programmatically Install Certificate into 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.
首先导入证书手动进入样例用户的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 Data\\ \\Mozilla\Firefox\Profiles\%randomalphanum%.default\cert8.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-folder\defaults\profile
(Windows)
这篇关于以编程方式将证书安装到Mozilla的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!