2
votes

I am trying to install the version 2.162 of the open source Jenkins. The Jenkins successfully came up but, when I go to Manage Jenkins-> Manage Plugins, I see following error:

I've done some search and see this problem is regarding the certificate issue

There were errors checking the update sites: SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: > sun.security.provider.certpath.SunCertPathBuilderException: unable to > find valid certification path to requested target

In the keystore, which website certs should I add so that jenkins can donwload the plugins from?

5

5 Answers

4
votes

I was able to solve this from Jenkins UI very easy to login to Jenkins with Admin

  • Manage Jenkins
  • Manage Plugins
  • Advance (Under the Manage Plugins)
  • List item

  • Change URL from https to http and click on Submit

  • In the Last click on Check Now
0
votes

You have to configure JENKINS update-site CA-s certificates in your JENKINS java store. Just get those certificates (you can get it from your browser accessing update-site URL) and add it to your java store (java store path: $JAVA_HOME/jre/lib/security/cacerts)

0
votes

You should have latest version of JDK. I faced same issue and it was because while installing I used jdk1.8.0_241 instead of Java 2.91. And here I ended up in all kind of issues. First I need to move to http from https (Solution above) and then still got same error while installing plugin. To resolve this , you can see which Java version your Jenkins is referring, in your Jenkins installation HOME folder, under file named Jenkins.xml. Search for following line - C:\Program Files\Java\jre1.8.0_291\bin\java.exe

if it is outdated, update it, JDK 1.8.291 worked like a charm for me !

This JIRA ticket helped me in getting to root cause of this - https://issues.jenkins.io/browse/JENKINS-63515

-2
votes

Just a small hack. Update the URL in the file "hudson.model.UpdateCenter.xml" from https to http

<?xml version='1.1' encoding='UTF-8'?>
<sites>
  <site>
    <id>default</id>
    <url>http://updates.jenkins.io/update-center.json</url>
  </site>
</sites>