更新时间:2022-06-09 05:19:46
我解决了这个问题! Java在jre/lib/security
文件夹中具有java.security
文件,并且该文件具有属性keystore.type
.该属性设置为Windows-ROOT
,但是我已经在cacerts
文件中导入了证书,并且该属性应该设置为jks
,以便Java读取cacerts文件!
I solved this! Java has java.security
file in jre/lib/security
folder, and that file has a property keystore.type
. This property was set to Windows-ROOT
, but I have imported certificates in cacerts
file, and the property should be set to jks
so that Java reads the cacerts file!
sun.security.validator.ValidatorException:PKIX路径构建失败,java> 1.6
如何忽略PKIX路径构建失败:sun.security.provider.certpath.SunCertPathBuilderException?
javax.net.ssl.SSLHandshakeException:sun.security.validator.ValidatorException:PKIX路径构建失败
如何忽略 PKIX 路径构建失败:sun.security.provider.certpath.SunCertPathBuilderException?