Hi,

I have been working on the development of a PKCS#11 module to work with
iPlanet Servers. Our token provides between other things Random Number
Generation, and I would like to make it default for RNG. We have been
testing with both iWS 4.1 SP7 and iWS 6.0, and I am having few problems
when using modutil under both Solaris and HP-UX.

Under Solaris, when I run :
> modutil -default NAME -mechanisms RANDOM -dbdir . -nocertdb -force 

I get "RANDOM is not a recognized value". I checked the code for modutil
included on NSS 3.2 (which I had in my machine) and saw that the problem
was in the file pk11.c, where numMechanismsStrings was defined as 13
instead of 15. I recompiled the fixed code and was able to make my
module as default for RNG. This problem has been solved in the newer
version of NSS (3.3). My problem is that I need this fixed version of
modutil to be able to install my module in different machines, and I do
not want to have to build NSS 3.3 everytime in order to do that. I tried
to statically link modutil, but had no sucess (so far). Is there
anywhere (fixed) binaries of modutil that I can download, so I can use
everytime I install my module to iWS ? The one that comes with cpkg 1.06
has the same problem. Also, in case I have the fixed binary, what are
the issues concerning the commercial distribution of modutil with our
product, as it is currently the only way we can add our functionality to
iPlanet Web Servers ?

On HP-UX I have a different problem with modutil, as when I run the
version that comes with iWS (again both 4.1 SP7 and 6.0), it returns :

> /usr/lib/dld.sl :  Can't open shared library: 
>../../../dist/HP-UXB.11.00_OPT.OBJ/lib/libnspr3.sl

> /usr/lib/dld.sl : No such file or directory

> ABORT instruction (core dumped)

This is clearly a bug, as the directory structure is the one from NSS
instead of the one from iWS ! I then use the binary version I have from
cpkg 1.06, I get :

> /usr/lib/dld.sl: Unresolved symbol: __ZStaticCtorTable_Start (data) from 
>/usr/lib/libCsup.2
> /usr/lib/dld.sl: Unresolved symbol: __ZStaticCtorTable_End (data) from 
>/usr/lib/libCsup.2 
> /usr/lib/dld.sl: Unresolved symbol: __StaticCtorTable_Start (data) from 
>/usr/lib/libCsup.2
> /usr/lib/dld.sl: Unresolved symbol: __StaticCtorTable_End (data) from 
>/usr/lib/libCsup.2 


It nevertheless works, adding our module and marking RANDOM as default.
It then dumps core. Again, if I use the modutil included in iWS I won't
be able to add our module. The solution was to use a binary version,
that nevertheless has also problems.

Thanks

Carlos

Reply via email to