2021年8月25日 | Leave a comment 问题: Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at java.base/sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:141) ~[na:na] at java.base/sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:126) ~[na:na] at java.base/java.security.cert.CertPathBuilder.build(CertPathBuilder.java:297) ~[na:na] at java.base/sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:434) ~[na:na] ... 98 common frames omitted 123456 Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at java.base/sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:141) ~[na:na] at java.base/sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:126) ~[na:na] at java.base/java.security.cert.CertPathBuilder.build(CertPathBuilder.java:297) ~[na:na] at java.base/sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:434) ~[na:na] ... 98 common frames omitted 解决: jdk11导入证书 rem cd {jdk}\lib\security ..\..\bin\keytool -importcert -cacerts -alias CFCA_EV_ROOT -file C:\Users\tangfh\Downloads\crccdemo\devops\CFCA_EV_CA\CFCA_EV_ROOT.cer 12 rem cd {jdk}\lib\security..\..\bin\keytool -importcert -cacerts -alias CFCA_EV_ROOT -file C:\Users\tangfh\Downloads\crccdemo\devops\CFCA_EV_CA\CFCA_EV_ROOT.cer