且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

sun.security.validator.ValidatorException:PKIX路径构建失败,java> 1.6

更新时间: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!