问题:
1 2 3 4 5 6 |
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导入证书
1 2 |
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 |