[SOLVED] NSS LDAPS (TLS) not working. LDAP (non-TLS) is working

view story

http://www.linuxquestions.org – I have setup an LDAP server, where i authenticate my users. This is working as intended. Now I have added TLS to libpam-ldap and libnss-ldap! libpam-ldap works fine, with TLS, but libnss-ldap does not! If I run id, when uri is ldaps://example.com in the /etc/libnss-ldap.conf file I get this error, and I am unable to query userids, group ids etc.. Code: Nov  2 22:46:22 testserver id: nss_ldap: could not connect to any LDAP server as (null) - Can't contact LDAP server Nov  2 22:46:22 testserver id: nss_ldap: failed to bind to LDAP server ldaps://example.com: Can't contact LDAP se (HowTos)