To sum up: It's a Java bug. Consider copying softkn and dependencies to
%temp%

It only accepts "elemental characters" ie: not '(', neither 'รก'...

On Mon, Jan 12, 2015 at 2:25 PM, Opa114 <opa...@gmail.com> wrote:

> hi again,
>
> yeah i googled the last days very much about this topic. so i found out
> the best solution for me would be so access the softokn3.dll with PKCS#11
> Provider in java.
>
> i tried a little bit and wrote a small code. but it does not work. i got
> the Error parsing configuration, Unexpected token[] error in line 3.
>
> here is my little peace of code an my config file for it.
>
> Code:
>
>         String configName = "D:\\test.cfg";
>         Provider p = new sun.security.pkcs11.SunPKCS11(configName);
>         Security.addProvider(p);
>
>         Provider[] providers = Security.getProviders();
>         for ( int i=0; i < providers.length; i++ ) {
>             System.out.println("Provider " +i+ ": " +
> providers[i].getName());
>         }
>
> Config:
>
> name=NSS
> library="C:\\Program Files (x86)\\Mozilla Firefox\\softokn3.dll"
> nssArgs="configdir='C:/Users/Matthias/AppData/Roaming/Mozilla/Firefox/Profiles/2zd6f6ww.default-1387886878940'
> certPrefix='' keyPrefix='' secmod='secmod.db' flags=readOnly"
> slot=2
>
> i tried it without "" and with "\" and "\\", but nothing worked. can you
> help me?
> --
> 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

Reply via email to