I am trying to contact the organization's OpenLDAP server over SSL.
I am not sure if I am trying with the correct certificate, but I am using a .pfx
file I found.
It is located at C:/cert/mycert.pfx
On my ldap.conf
file I have the following:
TLS_REQCERT never
TLS_CACERT C:\\cert\\mycert.pfx
When I try to contact the LDAP server I get the following error:
TLS: could not load verify locations (file:`C:\\CERT\\mycert.pfx',dir:`')
Not sure why the quotes look like that, and also the dir
is empty and looks like it takes the entire string as the filename and not the path.
What am I doing wrong?
Edit: I tried more variations, same error:
TLS_CACERT C:/cert/mycert.pfx
,
TLS_CACERT C:\cert\mycert.pfx