ldapsearch fails with "TLS error -5938:Encountered end of file" while trying to use SSL/TLS

Solution Verified - Updated -

Issue

We have a problem on Openldap installation, ldapsearch on 389 works well but when I try an ldapsearch with starttls I got these errors:

    TLS: loaded CA certificate file /etc/openldap/cacerts/316e8be0.0 from CA certificate directory /etc/openldap/cacerts.
    TLS: error: connect - force handshake failure: errno 0 - moznss error -5938
    TLS: can't connect: TLS error -5938:Encountered end of file.
    ldap_err2string
    ldap_start_tls: Connect error (-11)
        additional info: TLS error -5938:Encountered end of file

Environment

  • openldap-servers
  • openldap-clients
  • SSL/TLS enabled on the server

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In