You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
LDAPS does not work with private TLS CA; HTTPS works #11372
curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: https://curl.se/docs/sslcerts.html
curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
The OpenLDAP related code in curl does not seem to make any effort to set the provided paths for this. 😢
I can't even figure out how to use the OpenLDAP API to point out a custom CA store. I can only find documentation mentioning setting a different path in /usr/local/etc/openldap/ldap.conf but I hope this is not the only way. 🤔
Thanks. Here is what I think has changed. Pulling this data out of the package manager log is finicky, so I cannot guarantee that I did not make a mistake. 🫤
The OpenLDAP related code in curl does not seem to make any effort to set the provided paths for this. cry
I can't even figure out how to use the OpenLDAP API to point out a custom CA store. I can only find documentation mentioning setting a different path in /usr/local/etc/openldap/ldap.conf but I hope this is not the only way. thinking
Hi @vlkl-sap did you ever confirm this was fixed? I am seeing a similar issue with 8.7.1 on macOS Tahoe and Sequoia, but the fix is listed as part of the 8.2.0 release.
Activity
bagder commentedon Jun 22, 2023
So how did all the involved components change in the mean time? libcurl version, TLS library version, OpenLDAP version and CA store?
bagder commentedon Jun 22, 2023
The OpenLDAP related code in curl does not seem to make any effort to set the provided paths for this. 😢
I can't even figure out how to use the OpenLDAP API to point out a custom CA store. I can only find documentation mentioning setting a different path in
/usr/local/etc/openldap/ldap.confbut I hope this is not the only way. 🤔@hyc: any ideas/proposal of where to look?
vlkl-sap commentedon Jun 22, 2023
Thanks. Here is what I think has changed. Pulling this data out of the package manager log is finicky, so I cannot guarantee that I did not make a mistake. 🫤
bagder commentedon Jun 22, 2023
I believe #11374 fixes it.
configure: add check for ldap_init_fd
vlkl-sap commentedon Jun 22, 2023
Ah, great to hear! I cannot realistically build curl from source, but I can test it once it hits
curlimages/curl.Thanks!
hyc commentedon Jun 22, 2023
Sounds like you've already fixed this, but to answer your question, you want to read the ldap_set_option(3) manpage.
configure: add check for ldap_init_fd
configure: add check for ldap_init_fd
configure: add check for ldap_init_fd
alecgregory commentedon Dec 31, 2025
Hi @vlkl-sap did you ever confirm this was fixed? I am seeing a similar issue with 8.7.1 on macOS Tahoe and Sequoia, but the fix is listed as part of the 8.2.0 release.
vlkl-sap commentedon Jan 7, 2026
Hi @alecgregory. I have 8.14 here now and it works. Can't say much more, alas.
(The official docker images did not have LDAP support compiled in, so that was not a viable option for testing, at least back then).