I am Creating new project in spring boot with spring boot starter project but that shows me SunCertPathBuilderException: unable to find valid certification path to requested target
Asked
Active
Viewed 136 times
1
-
What Java version do you use? – Simon Martinelli Jan 02 '20 at 11:00
-
i am using java1.8 – Omkar Dere Jan 02 '20 at 11:04
-
Can you use the browser and access the URL start.spring.io – Simon Martinelli Jan 02 '20 at 11:09
-
yes i can use use but then this error comes in pom see:-Original error: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.2.2.RELEASE from/to central (https://repo.maven.apache.org/maven2): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target and 'parent.relativePath' points at no local POM – Omkar Dere Jan 02 '20 at 11:14
-
Do you have direct internet access or are you behind a proxy? – Simon Martinelli Jan 03 '20 at 06:58
-
Behind a proxy! – Omkar Dere Jan 06 '20 at 08:18
-
Read this: https://stackoverflow.com/questions/5857499/how-do-i-have-to-configure-the-proxy-settings-so-eclipse-can-download-new-plugin – Simon Martinelli Jan 06 '20 at 08:31
3 Answers
-1
The problem appears when your server has a self-signed certificate. To work around it you can add the certificate to the list of trusted certificates of your JVM.
check this article on how to do this https://better-coding.com/how-to-add-ssl-certificate-into-java-cacerts-file-and-jks-keystore/

Karim
- 1,004
- 8
- 18
-
-
-
add the certificate also but still same issue check this : keytool -keystore "C:\Program Files\Java\jre1.8.0_231\lib\security\cacerts" -import -alias https://start.spring.io/ -file C:\Desktop\springio.cer is it correct! – Omkar Dere Jan 06 '20 at 08:15