When i add below file i.e., ssl_mod.ldif
dn: cn=config
changetype: modify
add: olcTLSCACertificateFile
olcTLSCACertificateFile: /etc/ldap/cacert.pem
-
add: olcTLSCertificateFile
olcTLSCertificateFile: /etc/ldap/servercrt.pem
-
add: olcTLSCertificateKeyFile
olcTLSCertificateKeyFile: /etc/ldap/serverkey.pem
-
add: olcTLSCipherSuite
olcTLSCipherSuite: HIGH:MEDIUM:!SSLv3:!SSLv2
using following command:
ldapmodify -h localhost -p 389 -D "cn=admin,cn=config" -w
123 -f mod_ssl.ldif
i get ldap_result: Can't contact LDAP
server (-1) error.
Although LDAP is running. I can run
following command i.e.,
ldapsearch -h localhost -p 389 -D
"cn=admin,dc=platalytics,dc=com" -w 123 -b
"dc=platalytics,dc=com" "objectclass=*"
How can i make ldaps work?