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

后端 未结 8 704
予麋鹿
予麋鹿 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:23

    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.

    1. Close STS tool if open.
    2. Locate STS.ini file (mostly where you have installed STS tool and have STS.exe)
    3. 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

    4. Save STS.ini and restart the STS.exe.

    It works in my case. Thank you.

提交回复
热议问题