Error connecting Git Stash using https protocol
Hi,
I am using TeamCity 7.1 with Git VCS. The Git stash uses https protocol. I created a Git VCS root putting the https Fetch URL and entered my credentials in Authentication Settings. When I click on Test Connection, I get the following error:
List remote refs 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
The same error I get when I Run a build on the build configuration using this VCS root. See below:
Failed to start build
[02:01:27]Failed to collect changes, error: List remote refs 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
[02:01:27]
Even if I use Anonymous authentication, the error remains same.
I also tried both VCS checkout modes "Automatically on server"and "Automatically on agent (if supported by VCS roots)". But the error persists.
Can anyone please guide how to connect to Git Stash using https protocol?
Thanks for help in advance!
Please sign in to leave a comment.
Do we have any reply on this?
I am facing same issues while connecting with github...
List remote refs 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
I am wondering as yesterday it was working without any issues but now its not working any more.....
Any solution or troubleshooting?
-Rajesh
Please find the answer in the related thread: https://devnet.jetbrains.com/thread/460787?tstart=30