Trust an external server's certificate
Import a certificate into the trust keystore of the Java runtime the iGrafx Platform runs on, so the platform trusts an external server it connects to over TLS — a mail (SMTP) server, an LDAP or Active Directory server, or an iGrafx Process AutomationProcess Automation Executing a modeled process directly via a workflow engine, with human tasks, system calls, and decision logic orchestrated from the model. server.
The platform trusts a TLS certificate only if the certificate, or the certificate authority (CA) that issued it, is in that keystore. A self-signed certificate or one from an internal CA isn't there by default, so the connection fails with PKIX path building failed: … unable to find valid certification path to requested target in the server logs. You'll hit this when the platform sends mail over TLS, when it saves an LDAP or Active Directory configuration over SSL, or when it deploys a process to an iGrafx Process AutomationProcess Automation Executing a modeled process directly via a workflow engine, with human tasks, system calls, and decision logic orchestrated from the model. server that runs on HTTPS.
This page covers the connections the platform makes. For serving the platform itself over HTTPS, see SSL (HTTPS) configuration on Tomcat.
Prerequisites
- File-system access to the platform's installation directory on the server, and permission to restart the platform.
- The certificate to trust, as a file on that server — the external server's own certificate, or the root and intermediate CA certificates that issued it. How you obtain them depends on your network and your organization's policies.
Steps
-
Find the
lib\securitydirectory of the Java SDK bundled with your installation — theopenjdk-<version>folder in the installation directory. The trust keystore is thecacertsfile there. Its default password ischangeit.warningBack up
cacertsbefore you change it. An upgrade replaces the bundled Java SDK, so re-import your certificates after upgrading the platform. -
Copy your certificate files into that
lib\securitydirectory. -
Open a command line in the
lib\securitydirectory. -
Import each certificate, giving it an alias that's unique within the keystore (the file name without its extension works well):
..\..\bin\keytool.exe -import -trustcacerts -alias MY_ALIAS -file MY_CERT.cer -keystore cacerts -storepass changeitRepeat the command for every certificate in the chain you were given — typically the root CA certificate, then any intermediates.
If what you have is a PKCS#12 bundle (
.pfx) rather than individual certificate files, import the bundle instead.keytoolprompts for the destination keystore password (changeit) and then the source keystore's password:..\..\bin\keytool.exe -importkeystore -srckeystore MY_CERT.pfx -srcstoretype PKCS12 -destkeystore cacerts -
Restart the iGrafx Platform.
Verify
Retry the operation that failed, and confirm the PKIX path building failed error no longer appears in the server logs:
- Mail server — send a test email from Admin → Email Management.
- LDAP or Active Directory — save the directory configuration.
- iGrafx Process AutomationProcess Automation Executing a modeled process directly via a workflow engine, with human tasks, system calls, and decision logic orchestrated from the model. — deploy a process to the Automation server.
To confirm a certificate is in the keystore, list it by alias:
..\..\bin\keytool.exe -list -alias MY_ALIAS -keystore cacerts -storepass changeit
Troubleshooting
- Mail server configuration fails with a certificate error when using TLS
- LDAP over SSL fails with certificate exception