ksreedha...@gmail.com wrote:
Thanks Glen for the response.

I just copied new built library files to the same directory where the
original ones were. No environment changes. The library files
directory is in LD_LIBRARY_PATH.

make sure you copy the .chk files that you built along with the libraries.
make sure JSS's JNI libjss4.so is with the NSPR/NSS libraries
Do I need to build JSS from source if I build NSS/NSPR from source or
can I use the binaries downloaded from Mozilla site.

you're existing JSS should be fine.

this issue appears to be a configuration error. your LD_LIBRARY_PATH or possibly
provided location to your NSS cert/key databases is at issue

Consider using a test directory then:
bash
export LD_LIBRARY_PATH=<your path>

java -cp ./jss4.jar org.mozilla.jss.tests.SetupDBs . passwords

java -cp ./jss4.jar  java org.mozilla.jss.tests.SSLClientAuth . passwords

Get this sample working, and you should be able to figure out
your issue.

I believe you care about FIPS. Understand that if you are building your own
copy of NSS_3_11_4_RTM and modifying the source then you no longer
can claim FIPS compliance until you have that patch included in a release
and then have that NSS release pass it's own FIPS validation. I'm just
stating the obvious, you're likely just building NSS 3.11.4 for debugging purposes.

-glen



I suspect I am doing something wrong during NSS/NSPR building.

Thanks,
Sreedhar

On Apr 27, 10:11 am, Glen Beasley <glen.beas...@sun.com> wrote:
ksreedha...@gmail.com wrote:
Hello,
I am using JSS 4.2.5, NSS 3.11.4, NSPR 4.6.4. If I use the binaries downloaded from
https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_1...
and
https://ftp.mozilla.org/pub/mozilla.org/nspr/releases/v4.6.4/Linux2.6... everything works fine. But once I download the source from https://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_1..., build it using "gmake nss_build_all" in mozilla/security/nss directory
and use the built libraries, I get the following exception:
ava.lang.SecurityException: Unable to initialize security library
        at org.mozilla.jss.CryptoManager.initializeAllNative2(Native
Method)
This exception means JSS is unable to find the dependent JSS
JNI/NSS/NSPR libraries.
set your LD_LIBRARY_PATH correct.



        at org.mozilla.jss.CryptoManager.initialize(CryptoManager.java:
834)
        at com.fhp.ems.ssl.JssInitializer.initJss(JssInitializer.java:
35)
        at com.fhp.ems.main.NmsMainBE.main(NmsMainBE.java:15)
Can someone point me what I am doing wrong in the building the source. I appreciate your help Thanks,
Sreedhar

 smime.p7s
6KViewDownload- Hide quoted text -

- Show quoted text -- Hide quoted text -

- Show quoted text -


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

-- 
dev-tech-crypto mailing list
dev-tech-crypto@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-crypto

Reply via email to