Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-41575

PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • sbt-plugin
    • None

      I'm running the official jenkins docker image on CentOS 7.2. I use the SBT plugin for my builds and when it runs I see...
      [DataSieve_Build_Web] $ java -Xmx2G -Xms512M -Xss32M -Dsbt.log.noformat=true -jar /var/jenkins_home/tools/org.jvnet.hudson.plugins.SbtPluginBuilder_SbtInstallation/default/sbt/bin/sbt-launch.jar web/dist
      Getting org.scala-sbt sbt 0.13.11 ...
      :::: ERRORS
      Server access Error: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target url=https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt/0.13.11/ivys/ivy.xml

      Server access Error: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target url=https://repo.scala-sbt.org/scalasbt/ivy-snapshots/org.scala-sbt/sbt/0.13.11/ivys/ivy.xml

      I understand this is happening because my JVM cacerts did not have the certificates for repo.typesafe.com and repo.scala-sbt.org so using openssl I downloaded those certificate into .pem files and using java keytool I imported them into /etc/ssl/certs/java/cacerts which I confirmed is the keystore the container jenkins JVM is using. I restarted jenkins container and verified keystore via keytool -list -v -keystore /etc/ssl/certs/java/cacerts -storepass 'changeit'
      but keep getting same error. OK, so I found the "Skip Certificate Check plugin" and install it and restarted jenkins container but same issue.

      I would appreciate knowing if this is a known problem with this plugin or anything else I could do to resolve this problem. Thanks, Jesse

            uzilan uzilan
            jperez110 Jesse Perez
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: