0

我目前正在为我的项目设置开发环境,但他们使用 CAS 进行中央身份验证,我对 CAS 非常陌生。我仍然可以看到开发环境的 cas 登录页面,它使用 ldap 服务器进行用户身份验证,但是当我单击登录按钮时,它会引发异常。我附加了为我使用的 ssl 连接配置 Jboss 的链接,但我仍然遇到同样的异常。请帮忙

Jboss https配置

2012-12-17 15:33:51,575 INFO  [STDOUT] 15:33:51,575 ERROR [CASReceipt] edu.yale.its.tp.cas.client.CASAuthenticationException: Unable to validate ProxyTicketValidator [[edu.yale.its.tp.cas.client.ProxyTicketValidator proxyList=[null] [edu.yale.its.tp.cas.client.ServiceTicketValidator casValidateUrl=[https://IN-HODPDT-0010.glenmark.com/cas/serviceValidate] ticket=[ST-1-KRWufbKdoPaes3pBNKeBJEE30gXjF2lIcTy-20] service=[http%3A%2F%2FIN-HODPDT-0010.glenmark.com%2Ftraveldesk%2Flogin%2Floginaction.do] renew=false]]]
2012-12-17 15:33:51,575 INFO  [STDOUT] 15:33:51,575 ERROR [CASFilter] edu.yale.its.tp.cas.client.CASAuthenticationException: Unable to validate ProxyTicketValidator [[edu.yale.its.tp.cas.client.ProxyTicketValidator proxyList=[null] [edu.yale.its.tp.cas.client.ServiceTicketValidator casValidateUrl=[https://IN-HODPDT-0010.glenmark.com/cas/serviceValidate] ticket=[ST-1-KRWufbKdoPaes3pBNKeBJEE30gXjF2lIcTy-20] service=[http%3A%2F%2FIN-HODPDT-0010.glenmark.com%2Ftraveldesk%2Flogin%2Floginaction.do] renew=false]]]
2012-12-17 15:33:51,575 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/traveldesk].[action]] Servlet.service() for servlet action threw exception
sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
4

2 回答 2

0

看起来你的 CAS 服务器的 SSL 有问题。本指南可能会对您有所帮助:https ://wiki.jasig.org/display/CASUM/SSL+Troubleshooting+and+Reference+Guide 。

于 2012-12-18T08:45:20.987 回答
0

你应该将你的 server.cer 导入你的客户端 JRE !

keytool -import -trustcacerts -alias tomcat -keystore "%JAVA_HOME%/JRE/LIB/SECURITY/CACERTS" -storepass changeit -file c:\myserver.cer
于 2013-07-17T10:14:30.087 回答