Tagged: spring
- This topic has 4 replies, 2 voices, and was last updated 4 years ago by support-swapna.
-
AuthorPosts
-
indexaliceParticipantI’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?
support-swapnaModeratorHi,
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.
–Swapna
Genuitec Support- This reply was modified 4 years, 9 months ago by support-swapna.
support-swapnaModeratorHi,
Just checking – Were you able to resolve the reported issue?
Please let us know if you are still seeing the issue.–Swapna
Genuitec Support
indexaliceParticipantI found a solution in stackoverflow
https://stackoverflow.com/questions/50764343/spring-tool-suite-suncertpathbuilderexception-unable-to-find-valid-certificatiOn 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.
Clicked Finish.
The above steps exported a certificate to a file that I imported into truststore (cacerts).To import
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 appropriate
support-swapnaModeratorHi,
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.–Swapna
Genuitec Support -
AuthorPosts