Auth0 AD/LDAP Connector "Error: unable to get local issuer certificate"
Last Updated:
Overview
The Auth0 Active Directory/Lightweight Directory Access Protocol (AD/LDAP) Connector fails to connect to the domain controller due to an expired certificate in the /certs folder or interference from a local proxy. Resolve this issue by removing the expired certificates to allow the connector to generate new ones, or by disabling the certificate validation check in the configuration file. The connector experiences connection failures when matching an expired certificate with a certificate on the domain controller or when a proxy intercepts the connection, generating the following error:
Error: unable to get local issuer certificate
Applies To
- Auth0
- AD/LDAP Connector
Cause
The AD/LDAP Connector matches an expired certificate stored in the /certs folder with a certificate on the domain controller. Additionally, a local proxy intercepting the connection causes certificate validation to fail.
Solution
How are new certificates generated for the AD/LDAP Connector?
Remove the existing certificates folder to allow the Auth0 AD/LDAP Connector to generate new certificates.
- Navigate to the Auth0 AD/LDAP Connector installation directory.
- Delete the
/certsfolder. - Restart the AD/LDAP Connector to automatically generate a new
/certsfolder and certificates.
Disable the Certificate Validation Check in the Configuration File to Bypass the Error
Disable the certificate validation check by modifying the configuration file and restarting the connector.
- Open the
config.jsonfile. - Locate the
LDAP_TLS_VERIFY_SERVERsetting. - Set the value to
false. - Save the file and restart the AD/LDAP Connector.