在配置cas的过程中遇到如下错误:配置过程参见文章 www.ibm.com/developerworks/cn/opensource/os-cn-cas/
- javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
引起原因:
在SSL握手中,CAS Client无法识别CAS Server的证书(X),即无法建立一条从cacerts信任证书到X的信任路径。
解决办法:把证书导入到D:/ProgramFiles/Java/jre1.5.0/lib/security下的cacerts中。不仅仅是jdk1.5.0/lib/security下