David Sadler wrote, On 2008-07-15 09:24:
> 
> I am trying to setup Apache2, I have enable NSS and software encryption
> is working.
> I looked at the doc on modutil but when I tried what I thought might
> work I got this error.
> webserver1:/etc/apache2 # modutil -dbdir /etc/apache2/SampleCertDBs/
> -add IBM_CRYPTO_HDW -libfile /usr/lib64/libopencryptoki.so -mechanisms
> RSA:RC2:RC4:RC5:DES:SHA1:MD5:MD2:SSL:TLS

So, all I know, now, is that you tried to load a 64-bit version of a
PKCS#11 module, and it failed.  I gather that you are using some version
of Linux, but I have no idea what type of CPU you're using, nor what
specific flavor of Linux, etc.

> Using database directory /etc/apache2/SampleCertDBs...
> ERROR: Failed to add module "IBM_CRYPTO_HDW".
> webserver1:/etc/apache2 #

> Message is not very informative.

Agreed.  Didn't even print any error code.  :(  That could be improved,
but doing so is probably not the fast path to resolving your issue.

The usual reason for this error is that the OS was unable to dynamically
load the shared library you named.  Common reasons for this include:

- file not there
- permissions
- wrong instruction set architecture (e.g. trying to load a 64-bit shared
  library in a program that is otherwise all 32-bit code).
- shared library has dependencies on other shared libraries that cannot be
  loaded for any of these same reasons.
_______________________________________________
dev-tech-crypto mailing list
dev-tech-crypto@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-crypto

Reply via email to