projectz

Tech, Gadgets, Photography, Social Media and Poor Spelling

Importing and exporting Firefox certificates from the command line

SOURCE: http://www.dzhang.com/
Firefox is able to manage certificates and keys, 
for example personal certificates and their corresponding private keys 
to authenticate to certain sites. Th$

You will need certutil and pk12util. On Fedora, both of these are in the nss-tools package.

First, determine the path to your Firefox user profile. On Linux systems, 
it usually looks like~/.mozilla/firefox/foo.default, where foo is some alphanumeri$

$ certutil -L -d ~/.mozilla/firefox/foo.default
You should get a pretty big list. Find the name of the one you're interested in and export it:

$ pk12util -d ~/.mozilla/firefox/foo.default 

           -o /path/to/export-file.p12 

           -n 'Some certificate that I want to export'
Once you're exported it, you can import by using -i instead of -o:

$ pk12util -d ~/.mozilla/firefox/foo.default -i /path/to/export-file.p12
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Information

This entry was posted on April 13, 2011 by in regular and tagged , , , , , , , .
%d bloggers like this: