View Source

h1. How to get certutil

http://straxus.javadevelopersjournal.com/creating_a_mozillafirefox_drag_and_drop_file_upload_script_p_1.htm

h1. Where to get certutil
ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v4.4.1/WINNT5.0_OPT.OBJ/
ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_10_RTM/WINNT4.0_OPT.OBJ/

h1. What to do with NSPR and NSS after they're downloaded
Combine the contents of the "lib" directories and "bin" directories of both releases into one directory

h1. How to use it to add a CA cert to an existing firefox profile

http://www.mozilla.org/projects/security/pki/nss/tools/certutil.html

h1. Here is example batch code to do it in Windows XP

{panel}
FOR /F "tokens=*" %%A IN ('dir /B %APPDATA%\Mozilla\Firefox\Profiles\*.default') DO set FIREFOX_PROFILE_DIR=%%A
SET CERTDIR=%FIREFOX_PROFILE_DIR:\=/%
certutil.exe -A -n examplerootca -t "CT,C,C" -d "%CERTDIR%" -i examplerootca.crt
{panel}