Running a Policy XPress (PX) policy that utilizes an LDAP Query Data Source against a secure UserStore may fail with an SSL-related error. This typically occurs when the Identity Manager application server cannot validate the SSL certificate chain provided by the remote LDAP server.
Error Message: Error creating search context; JBAS011843: Failed instantiate InitialContextFactory com.sun.jndi.ldap.LdapCtxFactory... sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Identity Manager
The application server's Java Runtime Environment (JRE) does not trust the certificate presented by the LDAP Data Source. This is common when using self-signed certificates or internal Certificate Authorities (CAs) that have not been imported into the Java truststore.
Option 1: Permanent Fix (Recommended) Import the complete certificate chain (Root and Intermediate CAs) into the truststore used by the application server:
standalone.bat or server.log to identify the JAVA_HOME or JRE path being used.[JRE_HOME]\lib\security\cacerts.keytool command to import the certificate: keytool -import -trustcacerts -alias ldap_cert -file [certificate_file] -keystore [path_to_cacerts]Option 2: Workaround (Testing Only) To verify connectivity without SSL: