Hi there,

Just to give you a brief about. The objective is to build latest NSS/
NSPR/c-SDK so that "certutil" command can be used to create cert8.db
file to add certificate into that.

I built the following modules using MozillaBuild 1.4 on Windows
platform.

1.Drectory - c-sdk - mozldap-6.0.6
Link: 
ftp://ftp.mozilla.org/pub/mozilla.org/directory/c-sdk/releases/v6.0.6/src/mozldap-6.0.6.tar.gz

2. NSS-3.12 With NSPR-4.7
Link: 
ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_12_RTM/src/nss-3.12-with-nspr-4.7.tar.gz

I was able to build complete code base (i.e. NSS, NSPR and c-SDK) but
having issues as illustrated.


ISSUE 1: I went to "mozilla\security\nss" and built both NSS and NSPR
using the command "$make nss_build_all". This inreturn built both NSS
and NSPR and required libraries and utils got copied into "mozilla
\dist \WIN954.0_DBG.OBJ\(lib Or bin)" folder.


COMMENT: It created the NSPR files WITHOUT "lib" prefix under dist
folder.(e.g. nspr.dll, plc4.dll,plds4.dll, etc....).

Now i tried to add the certficate using certutil into certficate
database file using command as followed:

>certutil.exe -A -i "d:\SSL_CA_Cert\certnew.cer" -d "d:\1database1\" -n "WinXP" 
>-t PC,PC,PC -a

RESULT: I got the error as followed:
        certutil.exe: NSS_Initialize failed: Failure to load dynamic
library.
             error 126

I have the following libs in place: certutil.exe, nspr.dll,
plc4.dll,plds4.dll,nssutil3.dll,sasl32.dll, smime3.dll, ssl3.dll,
nss3.dll

DOUBTS: 1. Do i need to bulid NSPR again from "mozilla\nsprpub".
               2. If i build it then it created all the files with
"lib" prefix. But it fails while using "certutil" command to add
certificate into database file as certutil looking for the files
without "lib" prefix.


AM NOT SURE THAT THAT ERROR IS, WHICH LIBRARY MISSING TO LOAD.......


ISSUE 2: After builing NSS and NSPR as mentioned in ISSUE #1, I tried
to build c-SDK (configure "sh configure --with-nss" and build "make").
While building it, it failed complaining that I dont have Linknig
reference to libnspr, libplc4,libplds4 (As per my understanding its
obvious error bcoz while building NSS, NSPR (make nss_build_all), it
built references for nspr, plc4,plds4 NOT FOR libnspr,
libplc4,libplds4).

Can you please let me know whats the solution for both of the ISSUEs.


Regards,
Ashwani Saxena
-- 
dev-tech-crypto mailing list
dev-tech-crypto@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-crypto

Reply via email to