CentOS openLDAP cert trust issues
        Posted  
        
            by 
                84104
            
        on Server Fault
        
        See other posts from Server Fault
        
            or by 84104
        
        
        
        Published on 2012-10-11T22:51:29Z
        Indexed on 
            2012/10/14
            9:40 UTC
        
        
        Read the original article
        Hit count: 393
        
# LDAPTLS_CACERTDIR=/etc/ssl/certs/ ldapwhoami -x -ZZ -H ldaps://ldap.domain.tld
ldap_start_tls: Can't contact LDAP server (-1)
      additional info: TLS error -8172:Peer's certificate issuer has been marked as not trusted by the user.
# openssl s_client -connect ldap.domain.tld:636 -CApath /etc/ssl/certs
<... successful tls negotiation stuff ...>
    Compression: 1 (zlib compression)
    Start Time: 1349994779
    Timeout   : 300 (sec)
    Verify return code: 0 (ok)
---
openssl seems to think the certificate is fine, but openldap's libraries (pam_ldap exhibits similar behavior, which is how I got on to this mess) disagree.
What am I doing wrong?
© Server Fault or respective owner