When refreshing schema from S3 seeing PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

While refreshing the schema from S3, the application was unable to establish a trusted SSL connection because certificate validation failed. The JVM could not find a valid certificate chain for the S3 endpoint, resulting in the PKIX path building failed error.

Expected Solution:

Configure the JVM/container truststore to include the required SSL certificate chain (or corporate CA certificate, if applicable) so that the S3 endpoint certificate can be validated successfully during schema refresh operations.

Alternative Workaround:

Disable SSL certificate validation by passing the JVM parameter:

-Dcom.amazonaws.sdk.disableCertChecking=true