Velvet Star Monitor

Standout celebrity highlights with iconic style.

news

All git commands throw unable to find valid certification path to requested target error

Writer Matthew Barrera

I have an Ubuntu VM and all has been well with the git installation until very recently, when suddenly today if I execute any git command I now see this:

$ git pull
Fatal: java.lang.Error encountered. Details:
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
fatal: credential helper '!/home/linuxbrew/.linuxbrew/Cellar/openjdk/1.8.0-181/jre/bin/java -Ddebug=false -Djava.net.useSystemProxies=true -jar /home/linuxbrew/.linuxbrew/Cellar/git-credential-manager/2.0.4/libexec/git-credential-manager-2.0.4.jar' told us to quit

I found this so post which talks about this issue in Jenkins and references the path $JAVA_HOME/jre/lib/security/cacerts but my Ubuntu machine does not have that path and is not using Jenkins.

I'm guessing here that I need to get my corporation's cert installed, but I don't know where to install it.

Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy