Firefox: Add a Trusted CA

by on August 31, 2009 · 8 comments· LAST UPDATED August 31, 2009

in , ,

The default Firefox comes with certificates from well-known commercial CAs. My ISP is also CA and Firefox cannot verified it because the CA is not recognized. How do I force Firefox to accept my ISPs certificate?

Like many apps Firefox needs to have a certificate from the CA that signed the web server’s certificate. However, you can import a new CA certificate into Firefox version 3.5 using the following simple procedure:

Fire a Firefox browser (i.e. Launch Firefox)

Choose Preferences from the Edit menu.

Click the Advanced button.

Select the Encryption pane.

Fig.01: Firefox View Certificate

Fig.01: Firefox View Certificate

Click the View Certificates button.

Click the Authorities tab.

Click the Import button at the bottom of the screen.

Fig.02: Firefox Install / Import CA Certificate

Fig.02: Firefox Install / Import CA Certificate

Navigate to the CA certificate and import it.

TwitterFacebookGoogle+PDF versionFound an error/typo on this page? Help us!

{ 8 comments… read them below or add one }

1 John September 2, 2009 at 1:46 am

Cool now how do I do it for 1000 desktops?
Cheaper for me to buy a cert from a registered CA.

Reply

2 Patrick September 16, 2009 at 10:36 pm

@John

I suppose it depends on the operating system. But if you have 1k Linux desktops it should be easy (hopefully you have an SSH key installed on each).

Put there IP addresses into a file and from a bash shell do something like this:

for compy in `cat file_with_addresses` ; do scp your_ca.crt root@$compy:/usr/share/ca-certificates/mozilla/ ; ssh root@$compy ‘ln -s /usr/share/ca-certificates/mozilla/your_ca.crt /etc/ssl/certs/your_ca.pem’ ; done

These paths are based on Ubuntu 9.04. If you are running some other distro, you’ll need to figure out the paths for yourself.

Reply

3 Viktor January 4, 2012 at 3:53 pm

This does not seem to work under Ubuntu 11.04. I do not have many computers (3), but there some dozens of users and I copied my CA-certificate to /usr/share/ca-certificates/mozilla/my.crt and even ran ‘dpkg-reconfigure ca-certificates’ selecting this certificate and ‘update-ca-certificates’, but it seems firefox does not use this database. The certificate does not appear in the certificate list of firefox (for some random user).

Reply

4 kace February 3, 2011 at 9:21 pm

UPDATE: For me, anyway, it’s now found under “Tools > Options > …” vice “Edit > Preferences > …” The “… Advanced > Encryption > …” and so on is the same. I’ve got version Firefox 3.6.13.

Reply

5 Viktor January 4, 2012 at 3:55 pm

This is not a difference between different versions of Firefox but between Firefox for Windows and for Linux (at least Ubuntu). Not sure why this difference exists but it is pretty old.

Reply

6 rduke15 July 28, 2011 at 1:40 pm

@john, your 1000 desktops are probably Windows rather than Linux. But if your user profiles are on a Samba server, it can be quite easy to script. See here: Link #1.

If you have to do it on Windows and can compile the nss tools or find some binary, you could do something similar in Windows. See here for example: Link #2

Reply

7 Malcolm Rogers March 20, 2012 at 12:31 pm

You show how to import into firefox very clearly. However the explanation assumes you know where the file to be imported comes from. For example I have just installed satellite & I cannot connect to it becomes my browser will not let me. I have looked around & I have some certificates in /etc/pki/tls/certs on the server. Now I need to know how to create the import certificate. The files I have are:

ca-bundle.crt
localhost.crt
spacewalk.crt

So which one do I use? How do I use the above to make an import file?

Reply

8 CubeOver May 7, 2014 at 2:04 am

Sorry about necroposting. I am on Windows 7 and Firefox 29.
The procedure will have effect only for the user performing it.
Seems like trust anchors are per-user and not per-computer.
Another appalling fact is that they are completely different from the built-in windows crypto.
Is there a way to Import CA root per computer on Windows Firefox???
So that any other user, even newly created users, would have the corporate trust in Firefox?

Reply

Leave a Comment

Tagged as: , , , , , ,

Previous Faq:

Next Faq: