I don't know if it makes you happier but I succeeded using the following config without copying any mozilla files at all:
name=NSS library=c:\Program Files\Mozilla Firefox\softokn3.dll description=NSS PKCS11 nssArgs="configdir='c:/Documents and Settings/Administrator/Application Data/Mozilla/Firefox/Profiles/vyaxk8jd.default' certPrefix='' keyPrefix='' secmod='secmod.db' flags=readOnly" slot=2 Note the / rather than \ in nssArgs My problem is that this only addreses Mozillas soft token interface and I want all registered tokens. That requires JSS, I have been told. Anders ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <dev-tech-crypto@lists.mozilla.org> Sent: Thursday, July 26, 2007 09:05 Subject: Re: Using java to connect to Firefox PKCS11 implementation I have copied the whole content of C:\Documents and Settings\user\Application Data\Mozilla\Firefox\Profiles\randomno.default\ and c:\Program Files\Mozilla Firefox\ to c:\tip\. I've also tried to specify the profile directory as configdir without success. So even if my pkcs11.cfg looks like this, I get the same Exception: name=NSSSofToken library = c:\Program Files\Mozilla Firefox\softokn3.dll description=NSS PKCS11 nssArgs="configdir='C:\Documents and Settings\user\Application Data\Mozilla\Firefox\Profiles\randomno.default\' certPrefix='' keyPrefix='' secmod='secmod.db' flags=readOnly" slot=2 Maybe it has something to do with how java reads the path, especially the whitespaces and if to use slashes, backslashes or doublebackslashes. _____________________________________________________________________ Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! http://smartsurfer.web.de/?mc=100071&distributionid=000000000066 _______________________________________________ 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