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

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

    The simplest solution is to install your corporate certificate into the cacerts keystore of the JDK.

    /bin/keytool -import -alias CorpProxy -keystore /jre/lib/security/cacerts -file your_corp_cert.crt
    

    You will be prompted for the keystore password which is changeit by default.

提交回复
热议问题