NOTE: Assume certificate used for LDAPS was created using Active Directory Certificate Services.
Export Root CA from Active Directory Server
Log on as domain administrator on the Active Directory domain server.
Click Start 🢂 Windows Administrative Tools 🢂 Certificate Authority to open the CA Microsoft Management Console (MMC) GUI.
Highlight the CA computer, and right-click to select CA Properties.
From General menu, click View Certificate.
Select the Details view, and click Copy to File on the lower-right corner of the window.
Use the Certificate Export Wizard to save the CA certificate file
Click Next, select Base-64 encoded X.509 (.CER)
Click Browse to select path to save the root-CA
Click Finish.
Install Root CA on Cloud Gateway
Copy the root-CA (acme-ca-bundle.crt) to all Cloud Gateway:
/etc/pki/ca-trust/source/anchors/acme-ca-bundle.crt
Run below command on Cloud Gateway
update-ca-trust
Restart Gateway Services
systemctl restart cloudgateway
Test LDAPS connection from Cloud Gateway
Download Duo Certification Verification Utility to Cloud Gateway
cd /root/datacore
curl -fLO https://dl.duosecurity.com/acert-linux
chmod +x acert-linux
Run below command to verify LDAPS certificate
./acert-linux -host ad.acme.local -port 636
Make sure Cloud Gateway can reach Active Directory
Configure LDAPS on Cloud Gateway
Create a User account can login to Active Directory with read only access to LDAP/LDAPS.
Refer to LDAP Configuration to configure gateway authenticate with Active Directory LDAP.
Change protocol
ldap âž” ldaps
Port 389 âž” 636
Now should able login Cloud Gateway authenticate with Active Directory using LDAPS
In case test login from Cloud Gateway UI failed.
Verify errors by Request ID at
/var/log/caringo/cloudgateway_server.log
.grep 'request_id' /var/log/caringo/cloudgateway_server.log
Sample certificate error:2023-04-07 09:39:18,309 ERROR [qtp1357686726-9493|BC005B3EB68626F8] LDAPIdsys: Unable to connect to identity system ldaps://ad01.acme.internal:636 as ldapUser@acme.internal: javax.naming.CommunicationException: simple bind failed: ad01.acme.internal:636 [Root exception is javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException:Â unable to find valid certification path to requested target]