February 4, 2020 at 8:22 pm #640527
I’m using Myeclipse professional 2019.04.
I want to create a new Springboot project by file->new->project->New spring starter project.
But I’ve got a error:
SunCertPathBuilderException:unable to find valid certification path to requested target
By the way , I’m using HTTP and HTTPS proxy.
I want to know how to solve it?February 5, 2020 at 12:38 am #640537
It is likely that the SSL certs of the firewall are not Java-friendly. Other than making changes at the firewall level, we have a couple of options:
1) Correctly set up the proxy. I’m not sure if you already have a proxy configured in MyEclipse, but you could use an HTTP version of the proxy, instead of HTTPS – if one is available. This FAQ will explain how to set this up: https://www.genuitec.com/forums/topic/configuring-the-network-proxy-settings/
2) Please update to the latest version of MyEclipse, 2019.12.5 via Help > Check for Updates and check if you are still seeing the issue.
If you are still seeing issues, then please share with us the .log file located in the workspace dir/.metadata/.log for further investigation. Change the extension to .txt and attach it here.
Hope this helps. Please let us know how this works for you.
February 10, 2020 at 5:00 am #641162
- This reply was modified 6 months ago by support-swapna.
Just checking – Were you able to resolve the reported issue?
Please let us know if you are still seeing the issue.
Genuitec SupportFebruary 14, 2020 at 2:55 am #641793
I found a solution in stackoverflow
On Chrome, I went to https://start.spring.io
On the location bar clicked on the ‘Lock’ symbol next to https.
Selected ‘Certificate(Valid)’ on the ensuing pop-up.
On the resulting dialog box, clicked on the ‘Certificate Path’ tab, from under certificate path tree selected the root node, and then clicked on ‘View Certificate’
On the resulting dialog box, clicked on the ‘Details’ tab and then clicked on ‘Copy to File’
This brings up the ‘Export wizard’, clicked on ‘Next’.
Left the certificate format to default ‘DER encoded..’, clicked on ‘Next’.
Provided file name (.cer extension) for the certificate.
The above steps exported a certificate to a file that I imported into truststore (cacerts).
Opened a ‘Command’ prompt as Administrator to import the certificate
Went to bin directory of Java installation (this step is not needed if jre/bin is in your path)
Ran the following:
C:\Program Files\Java\jre1.8.0_144\bin>keytool -importcert -alias your-alias -keystore “C:\Program Files\Java\jre1.8.0_144\lib\security\cacerts” -storepass changeit -file C:\certificate-file-location\saved-certificate-file.cer
(Substitute your java location, certificate file location and certificate file name as appropriateFebruary 14, 2020 at 3:15 am #641794
Thank you for pointing to the solution. It will surely help us when assisting other users.
Please let us know if you see any other issues.