TeamCity is throwing SSL S3 artifact storage handshake Exception after upgrade

I recently upgraded the TeamCity server from 2022 to 2025.7. I use S3 for artefacts storage.  The TeamCity server running in EC2 via Docker image.

After the upgrade, I get below errors.

 Failed to publish artifacts: javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
13:30:00   Upload [/home/ubuntu/teamcity/work/47285db1d51751c4/scripts/setup.tar.gz => PcSetup/92330/setup.tar.gz] failed with error: javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
0
2 comments

Hi,

Are you using the certificates self-signed?  It basically means that Java does not trust your certificate and is unable to reach find a path to verify it. It is probably either self-signed or the CA is not in the Java keystore.

If so, have you tried importing them into the agent’s Java trust store using the keytool as shown here

You’ll need to restart the agent once it’s done.
 

0

Thank you so much! Your suggestion fixed the issue.

0

Please sign in to leave a comment.