ldapsearch certificate handling