I'm trying to connect to a TeamCity server via SSL. I have added the full certificate chain to the cacerts file of my JRE ($JAVA_HOME/lib/security/cacerts) as well as to the list of trusted certificates of the YouTrack instance. Still I'm getting this error whenever I try to connect to the TeamCity server:
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target.
Am I missing something?