Hi all, I would appreciate any help with getting JSS to work with a Mozilla installation.
Can you point me to some document other than http://www.mozilla.org/projects/security/pki/jss/ (and descending http://www.mozilla.org/projects/security/pki/jss/jss_release_3.1.1.html http://www.mozilla.org/projects/security/pki/jss/using_jss.html ) maybe some how-to? Is it possible to make some program based on JSS, which to use NSS dinamic libraries from existing Mozilla installation? How to detect the directory where the key3.db,cert.db etc... files are in? (e.g. is there a way from Java applet to know which is the current profile, or where is the profile directory, or something like that?) I think there might be a bug, but I'd like to first consult the newsgroup as I'm quite new to JSS, so the problem might be with me. Here is what I tried: 1. downloaded binary JSS_3_1_1 from http://ftp.mozilla.org/pub/security/jss/releases/JSS_3_1_1_RTM/jss311.jar and http://ftp.mozilla.org/pub/security/jss/releases/JSS_3_1_1_RTM/WINNT4.0_OPT.OBJ/mdbinary.jar 2. extracted jss3.dll from mdbinary.jar in Mozilla's directory (E:\Program Files\mozilla.org\Mozilla). This is the directory where nss3.dll, smime3.dll etc. file are. 3. successfully compiled one of the examples (pkcs12.java) 4. set PATH=%PATH%;E:\Program Files\mozilla.org\Mozilla (tried also with PATH=%PATH%;E:\Progra~1\mozilla.org\Mozilla, but got the same result) 5.when I run it, it said it cannot load jss library: main: ERROR: Unable to load jss library Exception in thread "main" java.lang.UnsatisfiedLinkError: Unable to load jss li brary or one of its dependencies at org.mozilla.jss.CryptoManager.loadNativeLibraries(CryptoManager.java: 1272) at org.mozilla.jss.CryptoManager.initialize(CryptoManager.java:756) at org.mozilla.jss.CryptoManager.initialize(CryptoManager.java:729) at pkcs12.main(pkcs12.java:86) I tracked the problem to jss3.dll library: it searches for libplc4.dll, libplsd4.dll, libnspr4.dll but according to http://www.mozilla.org/projects/security/pki/jss/using_jss.html, on Windows platform the dlls' names should be plc4.dll, plsd4.dll, nspr4.dll - without lib prefix. I filed bug 159064 for this http://bugzilla.mozilla.org/show_bug.cgi?id=159064 The same results with http://ftp.mozilla.org/pub/security/jss/releases/JSS_3_1_2_RTM/
