unable to find valid certification path to requested target
程序员文章站
2022-05-01 14:49:11
...
解决步骤:
1.在安装证书之前,一定要先进入security目录, 例如我本机: C:\software\jdk1.8.0_211\jre\lib\security
2.安装证书时全部使用绝对路径,参考如下:
"C:\software\jdk1.8.0_211\bin\keytool.exe" -import -alias mail.cer -keystore cacerts -file "C:\files\mail.cer"
3.确保在你运行时的JDK安装证书,可能你本机安装了几个JDK版本,一定先确认你IDEA中的JDK
4.在尝试过以上步骤还是不行时,直接从可以运行项目的同事那里copy一个cacerts.jks文件,在运行项目时指定一下如下参数(注意最前面的-,
后面是你cacerts.jks文件地址):
-Djavax.net.ssl.trustStore="C:\code\branchs\dmc_machine_learning_environment\src\etc\cacerts.jks"
推荐阅读
-
AndroidStudio构建项目提示错误信息“unable to find valid certification”的完美解决方案
-
unable to find valid certification path to requested target 的简单解决办法
-
JAVA 解决 unable to find valid certification path to requested target 证书认证
-
resttemplate 调用https 出错 unable to find valid certification path to requested target
-
Android Studio出现:Cause: unable to find valid certification path to requested target解决办法
-
解决安全证书问题unable to find valid certification path to requested target 解决记录
-
AndroidStudio构建项目提示错误信息“unable to find valid certification”的完美解决方案
-
unable to find valid certification path to requested target
-
解决unable to find valid certification path to requested target
-
IDEA unable to find valid certification path to requested target。PKIX path building failed