Hi Again Matthias
Copy softkn+dependencies to %temp%, load libraries in Java using System.load (also in order!) and then try to use sunpkcs11 with the following config: String config = "name = NSS\r\n" + "library = " + path + "\r\n" + "attributes = compatibility\r\n" + "showInfo = false\r\n" + "allowSingleThreadedModules = true\r\n" + "slot = 2\r\n" + "nssArgs = \"configdir='" + profile.replace("\\", "/") + "' secmod='secmod.db' certPrefix='' keyPrefix='' flags=readOnly\"\r\n"; path is where softkn3 is located profile is the path where .db files are located. This should work. In the event of problems, check: http://docs.oracle.com/javase/7/docs/technotes/guides/security/p11guide.html There are a lot of resources on google too. Good luck ;) On Mon, Jan 12, 2015 at 7:58 PM, Opa114 <opa...@gmail.com> wrote: > Am Montag, 12. Januar 2015 18:51:51 UTC+1 schrieb helpcrypto helpcrypto: > > This is the dependency lack ;) > > > > This is what I have, probably some have changed: > > > > String[] nssDeps = { > > //WARNING: Order MATTERS! > > System.mapLibraryName("msvcr100"), > > System.mapLibraryName("msvcp100"), > > System.mapLibraryName("mozglue"), > > System.mapLibraryName("nss3"), > > System.mapLibraryName("mozutils"), > > System.mapLibraryName("mozcrt19"), > > System.mapLibraryName("nspr4"), > > System.mapLibraryName("plds4"), > > System.mapLibraryName("plc4"), > > System.mapLibraryName("nssutil3"), > > System.mapLibraryName("mozsqlite3"), > > System.mapLibraryName("sqlite3"), > > System.mapLibraryName("nssdbm3"), > > System.mapLibraryName("freebl3") > > }; > > > > > > > > On Mon, Jan 12, 2015 at 5:55 PM, Opa114 <opa...@gmail.com> wrote: > > > > > i tried it but get another error: Caused by: java.io.IOException: modul > > > not found - C:/Users/Matthias/AppData/Local/Temp/softokn3.dll > > > > > > but the file is in this folder. Where is the problem? > > > -- > > > dev-tech-crypto mailing list > > > dev-tech-crypto@lists.mozilla.org > > > https://lists.mozilla.org/listinfo/dev-tech-crypto > > > > > i've done this. loadedall the named librariesfrom you above. and now i get > this error: CKR_DEVICE_ERROR > > Caused by: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_DEVICE_ERROR > at sun.security.pkcs11.wrapper.PKCS11.C_Initialize(Native Method) > at > sun.security.pkcs11.wrapper.PKCS11$SynchronizedPKCS11.C_Initialize(PKCS11.java:1545) > at sun.security.pkcs11.wrapper.PKCS11.getInstance(PKCS11.java:157) > at sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:330) > ... 2 more > -- > dev-tech-crypto mailing list > dev-tech-crypto@lists.mozilla.org > https://lists.mozilla.org/listinfo/dev-tech-crypto > -- dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-crypto