Does any one know how to configure Java Plugin 6 to use the Firefox kesystore either in Windows or in Linux environments?
I installed and configured 'JSS' based on the information available at http://download.oracle.com/javase/6/docs/technotes/guides/deployment/deployment-guide/keystores.html
but still the plugin is not using the keys from Firefox keystore.
I follow the steps as follow from the URL:
Linux / Solaris
1. Create jss directory under Mozilla's installed directory.
2. Copy JSS JAR file into the jss directory.
3. Copy JSS native library .so into Mozilla's installed directory.
4. Set environment variable MOZILLA_HOME to Mozilla's installed directory in Mozilla's launch script.
5. Change environment variable LD_LIBRARY_PATH to include Mozilla's installed directory in Mozilla's launch script.
How can I tell if my Mozilla load the JSS library? I run the command "strace -o /tmp/check -f firefox",
I see in file /tmp/check load up libjss4.so : open("...libjss4.so/tls/i686/...libX11.so.5 ...)
I download libjss4.so from https://ftp.mozilla.org/pub/mozilla.org/security/jss/releases/JSS_4_2_5_RTM/Linux2.6_x86_glibc_PTH_OPT.OBJ/lib/libjss4.so
and jss4.jar from https://ftp.mozilla.org/pub/mozilla.org/security/jss/releases/JSS_4_2_5_RTM
My firefox 's version is 3.6.10
My machine is Linux 2.6.9-89
Can anyone provide any tips on getting JSS working for to allow access from a JAVA application to the Firefox keystore in order to access to a mutual authenticate SSL server ?
You can either add sun.security.pkcs11.SunPKCS11 to java.security or dynamically load the provider to use the PKCS#11 bridge that jss4.jar provides to allow you access the mozilla store, or alternatively, you can directly access it through org.mozilla.jss.CryptoManager API.
Thanks for your suggestion. Using JSS_SSLClient.java I'm able to to have SSLSocket connection happen. However, I need HttpsUrlConnection connect instead of SSLSocket connection. Is there a way I can do this?
Dear sir/madam ,
i am currently working on PKI PLUGIN ... i needed to access NSS through jss... i m not getting how to use JSS in java(how to install it) .. I have added classpath as jss4.jar in netbeans and i m getting the following error for this code:
java.lang.UnsatisfiedLinkError: no jss4 in java.library.path
Java Result: 1