David Stutzman wrote:

David Stutzman wrote:

I'm pullin my hair out here. I've downloaded and installed rpms for nss (3.9-1), nspr (4.5.0-0) and nss-tools (3.9-1) on a Fedora Core 2 system. When I run the pk12util command I keep getting:
pk12util: NSS_initialize failed: security library: bad database.
When I originally tried to install the rpms they conflicted with the mozilla rpms already installed so I yanked them out and put these in and I get the same message. I also downloaded a binary release of nss and nspr (from mozilla.org), untarred em, updated ld.so.conf to point to the lib directories, ran ldconfig and ended up with same message. I orginally thought that message was kicked out when you didn't have the right path in the command line params, but now I don't know. Everything I found online pointed to wrong command-line args. I wrote a batch file in windows to automatically import a p12 into the executing user's mozilla profile (which works fine) and am trying to do the same for linux. The p12 is good because I exported it from mozilla in the first place. Here's the command I'm running. I hope it *IS* something stupid I'm doing wrong...


$ pk12util -i -d /root/.mozilla/default/7y497op4.slt cert.p12 -W foo

Any help would be much appreciated.

Dave


To add some more info to this.  I ran:

$ certutil -G -d .

which, if the documentation is right, will generate a new private key and insert it into the database and if the database doesn't exist it will be created. I got the prompt to start typing on my keyboard and after that I got:
certutil: unable to generate key(s)
: An I/O error occurred during security autorization


this process did create the cert8.db, key3.db and secmod.db, but I can't any other commands to successfully do anything. certutil -L doesn't produce any output when run against the existing mozilla profile and I get the same NSS_initialization error when I run it against the newly created dbs.

Dave

$ pk12util -i -d /root/.mozilla/default/7y497op4.slt cert.p12 -W foo pk12util: NSS_initialize failed: security library: bad database.

$ pk12util -i cert.p12 -d /root/.mozilla/default/7y497op4.slt -W foo
pk12util: PKCS12 IMPORT SUCCESSFUL

BAH!!!!!!

Dave
_______________________________________________
mozilla-crypto mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-crypto

Reply via email to