problems with ldapsearch with SSL/TLS

hi, i try to connect ldap server with the conections are encripted from server side; so i create my own CA and a server ceritificate trusted by this CA using certutil and do this:

1) create a CA data base

2) create a CA certificate and sotore them in CA database

3) add this certificate to directory server certificate database

4) create a request of a server certificate

5) sign this request

6) add the trusted server certificate to directory server certificate database

# .../shared/bin/certutil certutil -V -u V -n einstein.prueba.uy -d .../alias -P slapd-einstein-

certutil: certificate is valid

# .../shared/bin/certutil -L -d .../alias -P "slapd-einstein-"

ca-certCT,,

einstein.prueba.uyCTu,Cu,Cu

but when i try to search, i have the followin message:

# ldapsearch -x -v -Z -p 389 -h 100.0.4.180 -D "cn=bindmailUsers,cn=mailUsers,dc=prueba,dc=uy" -w passbindmailUsers -b "cn=mailUsers,dc=prueba,dc=uy" "uid=*" -d -1

....

....

ldap_result msgid 2

ldap_chkResponseList for msgid=2, all=1

ldap_chkResponseList returns NULL

wait4msg (infinite timeout), msgid 2

wait4msg continue, msgid 2, all 1

** Connections:

* host: 100.0.4.180 port: 389 (default)

refcnt: 2 status: Connected

last used: Fri Apr 27 14:00:12 2007

** Outstanding Requests:

* msgid 2, origid 2, status InProgress

outstanding referrals 0, parent count 0

** Response Queue:

Empty

ldap_chkResponseList for msgid=2, all=1

ldap_chkResponseList returns NULL

ldap_int_select

read1msg: msgid 2, all 1

ber_get_next

ldap_read: want=8, got=0

ber_get_next failed.

ldap_perror

ldap_bind: Can't contact LDAP server (-1)

additional info: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

縄 forget something?

縤 doing something wrong?

?i must to configure ldapclient in solaris or openldap under linux to make this work ok?

thanks in advance!!!

[2096 byte] By [maximatta] at [2007-11-27 2:38:59]
# 1
Are you sure you have enabled SSL on port 389? Also, may be you are missing the -P option of the ldapsearch cmd to check out the SSL channel
LostLada at 2007-7-12 3:00:36 > top of Java-index,Web & Directory Servers,Directory Servers...
# 2
mmm.... i think yes
maximatta at 2007-7-12 3:00:36 > top of Java-index,Web & Directory Servers,Directory Servers...
# 3

Not sure if this will help. Assuming you setup your LDAP server for tls:simple. Here is how I configure solaris client:

To setup the client you first need to run mozilla or netscape and connect to the

ldap port 636:

https://ldap:636

The browser will ask if you want to accept the certificate, say yes forever.

The need to copy the cert8.db and key3.db files into the /var/ldap directory.

Next run the ldapclient init command:

ldapclient init -a proxydn=cn=proxy,ou=profile,dc=your,dc=domain,dc=here \

-a proxypassword=password -a domainname=your.domain.here ldap.server.ip.here

cjaykeista at 2007-7-12 3:00:36 > top of Java-index,Web & Directory Servers,Directory Servers...
# 4
aahhh... ok, i dont sure if i must to configure ldap clients; but i try like you suggest maybe this are the problem.Thanks!!!! :)
maximatta at 2007-7-12 3:00:36 > top of Java-index,Web & Directory Servers,Directory Servers...
# 5
i fix themthanks
maximatta at 2007-7-12 3:00:36 > top of Java-index,Web & Directory Servers,Directory Servers...