S3 agent not connecting, error message shows javax.net.ssl.SSLHandshakeException
search cancel

S3 agent not connecting, error message shows javax.net.ssl.SSLHandshakeException

book

Article ID: 280484

calendar_today

Updated On: 08-01-2024

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

Trying to start a new installation of the S3 agent and the log only shows the message:

ERROR: Connection Failed.

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

Environment

Automic Workload Automation 21.0.x

S3 21.0

Cause

The connection to the S3 storage URL is HTTPS (ie https://s3._server).
The certificate for the S3 server was not in the Java cacerts trust store. 

Resolution

Get the certificate for the S3 storage server and import it into the Java cacerts trust store on the S3 agent server. 

Additional Information

Either the Java keytool command or the GUI app Keystore Explorer can be used to import the certificate into the Java cacerts trust store.