[Date Prev][Date Next] [Chronological] [Thread] [Top]

Problems with SSL



  I'm trying to communicate with my ldaps and I can't. I don't know what Im
missing or doing bad.

---- I launch the server with:
/sbin/slapd -d 1 -h "ldap://0.0.0.0:389 ldaps://0.0.0.0:636"

---- In my slapd.conf I've written:
TLSCertificateFile      /etc/openldap/server.pem
TLSCertificateKeyFile   /etc/openldap/server.pem
TLSCACertificateFile    /etc/openldap/server.pem

(I don't think this was necessary for SSL, but...)

---- It works fine with TLS on port 389:
ldapsearch -x -Z -h ldap.myhost.com:389 -D 'cn=Admi,dc=seg'
-b 'cn=Admi,dc=seg' -w 'secret' -s base (userPassword=*)

---- But if I do:
ldapsearch -x -h ldap.myhost.com:636 -D 'cn=Admi,dc=seg'
-b 'cn=Admi,dc=seg' -w 'secret' -s base (userPassword=*)

ldap_bind: Can't contact LDAP server

---- I have the next log in the server:
connection_read(10): checking for input on id=0
TLS trace: SSL_accept:before/accept initialization
TLS trace: SSL_accept:error in SSLv2/v3 read client hello A
TLS: can't accept.
TLS: error:140760FC:SSL routines:SSL23_GET_CLIENT_HELLO:unknown protocol
s23_srvr.c:565
connection_read(10): TLS accept error error=-1 id=0, closing
connection_closing: readying conn=0 sd=10 for close
connection_close: conn=0 sd=10


Does anyone know how could I fix it? I've been looking google, HOWTO, FAQ's,
mailing lists... and I haven't found anything. Thank's in advance.

-- 
                                               Guillermo.