My TeamCity installation has been running without problems for months.
Now, I have changed the SSL certificate of the TeamCity server and - since then? - the Build Agent - which is running on a different machine - no longer connects to the Server.
I am getting this error:
[2016-05-10 14:24:13,745] WARN - buildServer.AGENT.registration - Failed to resolve server communication protocol. Will try all protocols: 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 (enable debug to see stacktrace)
I have tried importing the certificate into the truststore but it didn't help. I also tried to change back to the old SSL certificate, but this doesn't resolve the problem either, which I find puzzling.
I have tested the SSLPoke class (https://confluence.atlassian.com/kb/unable-to-connect-to-ssl-services-due-to-pkix-path-building-failed-779355358.html) and it successfully connects.
I am at a loss here and I am looking for help - this is a production system and this issue prevents me from shipping new versions to my clients. Any quick help is highly appreciated.