1

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

enter image description here

lakshman
  • 2,641
  • 6
  • 37
  • 63
Omkar Dere
  • 11
  • 1

3 Answers3

0

Hey can you try this

Change the service URL https to http

Service URL http://start.spring.io

Community
  • 1
  • 1
Dulaj Kulathunga
  • 1,248
  • 2
  • 9
  • 19
0

Try with http://start.spring.io/ It should work then.

-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
  • The service URL is the official Spring URL – Simon Martinelli Jan 02 '20 at 11:08
  • Yes but even so, he should add "the official Spring URL" to his cacert – Karim Jan 02 '20 at 11:10
  • 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