Hi Jim,

Could you please check the listing in your .../nss-3.11/lib directory to see if you have libnss3.so? If you do, could you please also check the following:

>strings libnss3.so | grep Header

You should get something like:

$Header: NSS 3.11  Jan 12 2006 16:05:41 $

The other way to test this is to see if all required libraries are reachable by the utility. This can be done by checking ldd on certutil:

>ldd certutil

This should give you something like this:

       libssl3.so =>    <MyDir>/lib/libssl3.so
       libsmime3.so =>  <MyDir>/lib/libsmime3.so
       libnss3.so =>    <Mydir>/lib/libnss3.so
       ....

If you see that the reference to libnss3.so is missing from your ldd listing, then that library is not in your LD_LIBRARY_PATH. Hope this helps.

Thanks,
Sandeep

Jim McCullars wrote:

Hi, I am trying to get an SSL connection to an LDAP server using the LDAP
SDK and PerLDAP.  I can make that work without SSL, but I think I need to
create a certificate database in order to use SSL.  So I am trying to use
certutil, and not having any luck.

I downloaded nss-3.11.tar.gz from the Mozilla FTP site into a directory
called /usr/local/pkg/nss and expanded it into /usr/local/pkg/nss/nss-3.11
When I go into the bin directory and enter just ./certutil, I get this
message:

ld.so.1: ./certutil: fatal: libplc4.so: open failed: No such file or
directory

Since that .so file is in the lib dir under my LDAP C SDK (5.08), and
since the certutil program might need libraries from the lib dir under the
nss dir, I do this:

LD_LIBRARY_PATH=/usr/local/pkg/ldapsdk/lib:/usr/local/pkg/nss/nss-3.11/lib
export LD_LIBRARY_PATH

Now when I try and run certutil, I get this:

ld.so.1: ./certutil: fatal: libnss3.so: version `NSS_3.4' not found
(required by file ./certutil)
ld.so.1: ./certutil: fatal: libnss3.so: open failed: No such file or
directory
Killed


The same thing happened when I tried using 3.10.  I then try and use
version 3.4.  I download that, change the LD_LIBRARY_PATH to the 3.4.2 dir
as such:

LD_LIBRARY_PATH=/usr/local/pkg/ldapsdk/lib:/usr/local/pkg/nss/nss-3.4.2/lib
export LD_LIBRARY_PATH

and if I run certutil with no arguments, I get the usage notes.  But if I
try and create a cert database using

./certutil -N

I get this:

Bus Error (core dumped)

I'm running this on a Sun Fire V100 server running Solaris 9.  When I
downloaded NSS versions 3.11 and 3.10, I got the Solaris 9 OPT versions.
For 3.4.2 I had to get the Solaris 8 version.

Can someone point me in the right direction?  Thanks...

Jim McCullars
University of Alabama in Huntsville


_______________________________________________
dev-tech-crypto mailing list
dev-tech-crypto@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-crypto

Reply via email to