Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

java.lang.SecurityException: Unable to initialize security library

186 views
Skip to first unread message

NB

unread,
Aug 17, 2009, 5:29:55 AM8/17/09
to
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

Glen Beasley

unread,
Aug 17, 2009, 12:09:32 PM8/17/09
to mozilla's crypto code discussion list
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
0 new messages