Spring tool suite- SunCertPathBuilderException: unable to find valid certification path to requested target

后端 未结 8 729
予麋鹿
予麋鹿 2021-01-13 06:12

I am working on STS and while creating a new spring-boot project, it shows following error:

 SunCertPathBuilderException: unable to find valid certification          


        
8条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-13 06:45

    I was able to resolve the issue following two steps.

    1. Firstly I imported certificate present on https://start.spring.io into the jdk cacerts.
    2. 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

提交回复
热议问题