客戶端沒有證書
org.jasig.cas.client.util.CommonUtils 2016-09-22 14:01:34,623 -- ERROR -- sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
通過拷貝服務(wù)端證書進(jìn)行客戶端導(dǎo)入來解決
cd /Java/jdk1.6.0_24
$ keytool -import -keystore jre/lib/security/cacerts -file keys/keystorecas.crt -alias mytomcatcas
服務(wù)端返回的內(nèi)容帶有中文信息
org.xml.sax.SAXParseException: The element type "cas:username" must be terminated by the matching end-tag "</cas:username>".
解決方法:
檢查編碼問題
注意:一定要添加到cas filter前面