I'm trying to setup an LDAP server with ldaps support. The server is hosted on ec2 and it has a domain name on route 53. I got an SSL certificate for the route 53 domain (say example.com). When i try to connect using ldaps from an ldap client, I get the following error.
TLS: certificate [CN=ip-xx-xx-xx-xxx.ec2.internal] is not valid - CA cert is not valid TLS: certificate [CN=ip-xx-xx-xx-xxx.ec2.internal] is not valid - error -8172:Peer's certificate issuer has been marked as not trusted by the user.. TLS: error: connect - force handshake failure: errno 21 - moznss error -8172 TLS: can't connect: TLS error -8172:Peer's certificate issuer has been marked as not trusted by the user.. ldap_err2string ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)
Problem is ldap resolves to the internal ip of the ec2 instance. How do i fix this issue?