Hi,

   I am trying to use pk12util tool to export certificates from the Netscape
Certificate Store. I downloaded the sources and compiled those for Windows.
I could use the program to Import certificates to the Netscape certifcate
store. However, I am not able to figure out how to use this utility for
exporting certificates.

   The usage of the utility is as follows:
Usage:   c:\Anil\work\Nss\pk12util\Debug\pk12util.exe -i importfile [-d
certdir] [-P dbprefix] [-h tokenname]
                 [-k slotpwfile | -K slotpw] [-w p12filepwfile | -W
p12filepw] [-v]
Usage:   c:\Anil\work\Nss\pk12util\Debug\pk12util.exe -o exportfile -n
certname [-d certdir] [-P dbprefix]
                 [-k slotpwfile | -K slotpw] [-w p12filepwfile | -W
p12filepw] [-v]

    What do I have to pass as the parameter for option "-n". I couldn't
figure out what the certname is? I can look at the Netscape preferences and
look at the certificates that are currently there in the certificate store.
I tried using the following command where "Anil" is the Subject Name of a
certificate and get the following error.

pk12util.exe -o C:\Temp\Debug\ExportCert3.c -n "NSS Certificate DB:Anil"

c:\Anil\work\Nss\pk12util\Debug\pk12util.exe: find user certs from nickname
failed: security library: bad database.

    Here are the version numbers of the modules I am using:
Netscape - 7.1
NSS - 3.8
Mozilla - 1.4

Regards,
Anil



Reply via email to