I am working on STS and while creating a new spring-boot project, it shows following error:
SunCertPathBuilderException: unable to find valid certification
In the case if none of above work, try below steps. It works fine for me as I was also working under corporate network, had same issue.
Edit STS.ini. Add following two line at the bottom (Use your JDK location, below one is just a sample)
-Djavax.net.ssl.trustStore=C:\Program Files\Java\jdk1.8.0_20\jre\lib\security\cacerts
-Djava.net.ssl.trustStorePassword=changeit
Save STS.ini and restart the STS.exe.
It works in my case. Thank you.
I encountered the same problem and tried this: Window -> Preferences -> Network Connections Change mode to Manual
It works fine now.
Try http instead of https in the URL http://start.spring.io
The following error will be resolved "SunCertPathBuilderException: unable to find valid certification path to requested target"
Adding below to eclipse.ini
-Djavax.net.ssl.trustStore=C:\Program Files\Java\jdk1.8.0_20\jre\lib\security\cacerts
-Djava.net.ssl.trustStorePassword=changeit
worked for me.
The simplest solution is to install your corporate certificate into the cacerts
keystore of the JDK.
<JAVA_HOME>/bin/keytool -import -alias CorpProxy -keystore <JAVA_HOME>/jre/lib/security/cacerts -file your_corp_cert.crt
You will be prompted for the keystore password which is changeit
by default.
I was able to resolve the issue following two steps.
Atlast I added the path of TrustStore and trustStore password in SpringToolSuite4.ini file.
-Djavax.net.ssl.trustStore=C:\Program Files\Java\jdk1.8.0_201\jre\lib\security\cacerts
-Djava.net.ssl.trustStorePassword=changeit