'php7.3 rhel8 LDAPS connection throws error: "TLS: hostname does not match peer certificate"
I have a httpd Server with PHP7.3 on a RHEL 8 machine. When I try to connect to our companys LDAPS Server I get the above mentioned error message. The same code works on another machine (Win 2008 Server, PHP5.X, Apache). There I had to create this file "c:\openldap\sysconf\ldap.conf" with this information:
TLS_REQCERT never
TLS_CACERT C:\Server\Apache24\conf\ssl\myCert.crt
The Certificate is the one I got for my Server with my Domain.
I think it has to do with the certificates I have or have not ... The RHEL Server at the moment only has a self signed cert and no domain which points to it.
I have no clue what the mentioned hostname nor what the name in the peer certificate ist. Not to mention I don´t know the peer certificate.
The web really couldn´t help me in hours of googling where TF I have to put a config file on RHEL for the LDAP functionality
You guys are my last hope :) THX
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
