NB wrote:
Hi All,

I tried to execute following commands on Solaris 10 Sparc

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
<<

and have following exception >>>

Failed to initialize the security subsystem!
java.lang.SecurityException: Unable to initialize security library
       at org.mozilla.jss.CryptoManager.initializeAllNative(Native
Method)
       at org.mozilla.jss.CryptoManager.initialize(CryptoManager.java:
919)

Thanks in advance

Rgds,
Naveen
your path needs to include JSS JNI library jss4.so, and also have NSS and NSPR shared libraries in your path.

Just requires NSS and NSPR.

Since you're on Solaris 10. JSS/NSS/NSPR libraries are installed by default in /usr/lib/mps

so

export LD_LIBRARY_PATH=/usr/lib/mps:$LD_LIBRARY_PATH

and the jar is installed by default in /usr/shared/lib/mps/jss4.jar


java -cp /usr/shared/lib/mps/jss4.jar org.mozilla.jss.tests.SetupDBs . passwords

you of course can use your own paths of your built NSPR/NSS/JSS binaries.


-glen

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