bryancole
1st August 2004, 09:55 AM
If anyone has got ldap working over openssl/TLS on fedora core 2, I'd like to hear from them. Please tell me how you did it!
I've got my ldap server up and running fine. Everything works great unencrypted.
My slapd.conf reads (the FC2 default):
TLSCACertificateFile /usr/share/ssl/certs/ca-bundle.crt
TLSCertificateFile /usr/share/ssl/certs/slapd.pem
TLSCertificateKeyFile /usr/share/ssl/certs/slapd.pem
And I've regenerated 'slapd.pem' certificates by running 'make slapd.pem' in /usr/share/ssl/certs, and set CN appropriately.
I've read all the documentation that keeps on saying my openssl certificates must have Common Name (cn) = fully quallified domain name. I've checked this.
Still I always get the following:
# ldapsearch -H ldap://myserver.mydomain -D uid=bryan,ou=people,dc=cole,dc=net -x -W -ZZ
ldap_start_tls: Connect error (91)
additional info: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure
N.B. I'm not running any DNS. I understand that openssl tries to resolve the server FQDN before comparing against the certificate. What happens if there's no DNS. Does it use nsswitch? I'm not sure.
What am I missing here? :(
If anyone can at least give me hope that it's _possible_ to get LDAP working with TLS I'd much appreciate it, as I'm beginning to think openssl is broken...
I've got my ldap server up and running fine. Everything works great unencrypted.
My slapd.conf reads (the FC2 default):
TLSCACertificateFile /usr/share/ssl/certs/ca-bundle.crt
TLSCertificateFile /usr/share/ssl/certs/slapd.pem
TLSCertificateKeyFile /usr/share/ssl/certs/slapd.pem
And I've regenerated 'slapd.pem' certificates by running 'make slapd.pem' in /usr/share/ssl/certs, and set CN appropriately.
I've read all the documentation that keeps on saying my openssl certificates must have Common Name (cn) = fully quallified domain name. I've checked this.
Still I always get the following:
# ldapsearch -H ldap://myserver.mydomain -D uid=bryan,ou=people,dc=cole,dc=net -x -W -ZZ
ldap_start_tls: Connect error (91)
additional info: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure
N.B. I'm not running any DNS. I understand that openssl tries to resolve the server FQDN before comparing against the certificate. What happens if there's no DNS. Does it use nsswitch? I'm not sure.
What am I missing here? :(
If anyone can at least give me hope that it's _possible_ to get LDAP working with TLS I'd much appreciate it, as I'm beginning to think openssl is broken...