When running an FTP job via a Workload Automation (WA) Agent, the job fails with the following error messages in the job log:
suberror - performLogin failed
Error constructing trust manager 234
Security environment established -
ready for negotiation(followed by certificate chain details)
Workload Automation agent: 12.1 or above
This issue occurs when the WA Agent's Java environment cannot validate the SSL/TLS certificate chain presented by the remote FTP server. This typically happens because the Root CA or Intermediate CA certificates from the remote server are missing from the agent's Java truststore (cacerts).
To resolve this, user may need to manually import the remote server's certificate chain into the agent's truststore.
keytool utility (provided with the Java Runtime Environment).changeit).ftp.example.com).root_ca.cer, intermediate_ca.cer) to a temporary directory on the WA Agent server.cacerts file used by the agent in Agent install directory. The alias name must be unique for truststore.# Import the Root CA
keytool -import -trustcacerts -alias remote_root_ca -file root_ca.cer -keystore "[Path_to_cacerts]" -storepass changeit
# Import the Intermediate CA
keytool -import -trustcacerts -alias remote_int_ca -file intermediate_ca.cer -keystore "[Path_to_cacerts]" -storepass changeit
cacerts file. ftp.client.ssl.accept_new_ca=true