enricoba
enricoba

Reputation: 31

Can not connect to server via ldaps using Let's Encrypt certificates

I set up an OpenLDAP server using this docker image: https://github.com/osixia/docker-openldap For TLS support I used Let's Encrypt certificates following this: https://serverfault.com/questions/777017/using-lets-encrypt-certificates-with-openldap

I can connect to the server via ldapsearch. As well using openssl s_client shows me a valid server certificate and opens TLS connection. I guess this works because openssl and ldapsearch use the CA store of my OS and there Let's Encrypt is fine. In addition, I use python to connect to the server. Thereby, I wrap a socket with the ca cert provided and it works.

However I can not make the connection running using phpldapadmin. When using default settings I receive a simple error:

Could not start TLS. Please check your LDAP server configuration.

Can't contact LDAP server (-1)

In the end I am looking for a way to use phpldapadmin like I use ldapsearch. But for me it seems like I can only enable full client TLS mode using private keys etc. However, I would like to use it just like web pages providing the CA certificate.

Is there anything I missed or configured wrong?

Thanks in advance!

Upvotes: 3

Views: 1215

Answers (1)

Hamid Najafi
Hamid Najafi

Reputation: 1

First stop any thing on port 80 (apache,nginx, if there Is ...) and then You have to open port 80 for that container.

Upvotes: 0

Related Questions