When running an RA Web Service SOAP or REST Job, it may fail with the below SSL error:
An error occured - while sending the request
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
<EOF>
Job Aborted: : sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Applications Manager 9.x
Automation Engine v12, v21, v24
This occurs when the Java environment does not have a proper CA certificate path to the HTTPS server to verify that it is a valid website.
You may need to retrieve the Root and/or intermediary certificates from the HTTPS site, and import them into the Java cacerts file. This should be performed on the Java install and server where the RA Webservice Agent (REST/SOAP) is installed.
Once certificates are available, copy them to the same server as the RA Web Service Agent server and run the following command to import each certificate (once for Root certificate and once for each intermediary certificate):
keytool -import -trustcacerts -keystore <path/to/cacerts> -storepass changeit -alias <aliasName> -file path/to/certificate.cer
If needed, refer to your OS admin.
On the Automic REST and SOAP Agent it is possible to add the certificate directly to a keystore keystore owned by the Agent: