Home > Enterprise >  PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed

Time:11-26

On creating / cloning Spring project using IDEA Ultimate, i always get PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed

Error on start

Here is the full error message

 problem occurred configuring root project 'cuanku'.
> Could not resolve all files for configuration ':classpath'.
   > Could not resolve org.springframework.boot:spring-boot-buildpack-platform:2.7.5.
     Required by:
         project : > org.springframework.boot:org.springframework.boot.gradle.plugin:2.7.5 > org.springframework.boot:spring-boot-gradle-plugin:2.7.5
      > Could not resolve org.springframework.boot:spring-boot-buildpack-platform:2.7.5.
         > Could not get resource 'https://plugins.gradle.org/m2/org/springframework/boot/spring-boot-buildpack-platform/2.7.5/spring-boot-buildpack-platform-2.7.5.pom'.
            > Could not GET 'https://jcenter.bintray.com/org/springframework/boot/spring-boot-buildpack-platform/2.7.5/spring-boot-buildpack-platform-2.7.5.pom'.
               > PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
   > Could not resolve org.springframework.boot:spring-boot-loader-tools:2.7.5.
     Required by:
         project : > org.springframework.boot:org.springframework.boot.gradle.plugin:2.7.5 > org.springframework.boot:spring-boot-gradle-plugin:2.7.5
      > Could not resolve org.springframework.boot:spring-boot-loader-tools:2.7.5.
         > Could not get resource 'https://plugins.gradle.org/m2/org/springframework/boot/spring-boot-loader-tools/2.7.5/spring-boot-loader-tools-2.7.5.pom'.
            > Could not GET 'https://jcenter.bintray.com/org/springframework/boot/spring-boot-loader-tools/2.7.5/spring-boot-loader-tools-2.7.5.pom'.
               > PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
   > Could not resolve org.apache.commons:commons-compress:1.21.
     Required by:
         project : > org.springframework.boot:org.springframework.boot.gradle.plugin:2.7.5 > org.springframework.boot:spring-boot-gradle-plugin:2.7.5
      > Could not resolve org.apache.commons:commons-compress:1.21.
         > Could not get resource 'https://plugins.gradle.org/m2/org/apache/commons/commons-compress/1.21/commons-compress-1.21.pom'.
            > Could not GET 'https://jcenter.bintray.com/org/apache/commons/commons-compress/1.21/commons-compress-1.21.pom'.
               > PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
   > Could not resolve org.springframework:spring-core:5.3.23.
     Required by:
         project : > org.springframework.boot:org.springframework.boot.gradle.plugin:2.7.5 > org.springframework.boot:spring-boot-gradle-plugin:2.7.5
      > Could not resolve org.springframework:spring-core:5.3.23.
         > Could not get resource 'https://plugins.gradle.org/m2/org/springframework/spring-core/5.3.23/spring-core-5.3.23.pom'.
            > Could not GET 'https://jcenter.bintray.com/org/springframework/spring-core/5.3.23/spring-core-5.3.23.pom'.
               > PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed

I can't seem to find answers related on this problem, there's alot of PKIX path validation failed out there, but i can't seem to find the solution for my problem.

CodePudding user response:

It looks like an immediate problem right now world wide. Hope a resolution comes soon. Known problem right now

CodePudding user response:

Not sure how to do this if you are using gradle, you can try to avoid using the gradlePluginPortal which uses jcenter, which uses bintray. Any ideas?

CodePudding user response:

I have the exact same problem but only on my build agent running on ubuntu. Building on my dev machine (macOS) is working just fine. That's really a blocker as my CI pipeline fails because of that! Any ideas how to fix this?

Expired bintray certificate

  • Related