First, look at how NSS defines CK_C_INITIALIZE_ARGS:
http://lxr.mozilla.org/security/source/security/nss/lib/softoken/pkcs11t.h#1039
The new parameter is LibraryParameters.
If your certs are in /home/me/certs, try something like this:
ckc_init_args.LibraryParameters = "configdir='/home/me/certs' certPrefix='' keyPrefix='' secmod='secmod.db'"
-Ian
Mathias Brossard wrote:
Hi,
I've browsed through the archive and lots of other places, but I could not find the solution only posts from others having the same problem: I want to use softokn3 (for me libsoftokn3.so on Linux, for others softokn3.dll on windows) as a PKCS#11 token. C_Initialize fails with CKR_ARGUMENTS_BAD because I don't provide the path for the token's database). How am I supposed to do that ? Just a small code snippet should be able to help me, thanks in advance.
Sincerely,
--
Mathias Brossard
