ldapmodify olcTLSCACertificateFile error 80 while adding ssl certs

by smitttho   Last Updated July 12, 2019 13:00 PM - source

i know my problem was and is widely discussed...

But, no posted solution workes for me.

I build certs and keys:

/etc/ssl/certs/caCert.pem (root:ssl-certs 644) /etc/ssl/certs/ldapPublic.pem (root:ssl-certs 644) /etc/ssl/private/ldapPrivate.pem (root:root 640)

my tlsCa.ldif

dn: cn=config changetype: modify replace: olcTLSCACertificateFile olcTLSCACertificateFile: /etc/ssl/certs/caCert.pem

my call:

ldapadd -H ldapi:// -D cn=admin,cn=config -W -f tlsCa.ldif

the response

modifying entry "cn=config"
modify complete

But, after that something went wrong.

my tlsPub.ldif

dn: cn=config
changetype: modify
replace: olcTLSCertificateFile
olcTLSCertificateFile: /etc/ssl/certs/ldapPublic.pem

the same call

ldapadd -H ldapi:// -D cn=admin,cn=config -W -f tlsPub.ldif

the response

ldap_initialize( ldapi:///??base )
replace olcTLSCertificateFile:
        /etc/ssl/certs/ldapPublic.pem
modifying entry "cn=config"
ldap_modify: Other (e.g., implementation specific) error (80)

I don't know how to fix this problem. Can anybody help me, please...



Related Questions


LDAP TSL ldap_modify: error 80

Updated July 02, 2018 10:00 AM




OpenLDAP configure LDAPS, restart fails

Updated November 09, 2015 06:00 AM