CAS身份验证失败了phpCAS

时间:2014-09-10 09:13:25

标签: php phpcas

成功登录CAS后,我收到错误。

CAS Authentication failed! You were not authenticated.You may submit your request again by clicking here. If the problem persists, you may contact the administrator of this site.

和日志文件中的错误:

PHP Fatal error:  Uncaught exception 'CAS_AuthenticationException' in /var/www/CAS-.3.2/CAS/Client.php:2764\nStack trace:\n#0 /var/www/CAS-1.3.2/CAS/Client.php(1224): CAS_Client->validateCAS20('https://sso.jarko...', '', NULL)\n#1 /var/www/CAS-1.3.2/CAS.php(1151): CAS_Client->isAuthenticated()\n#2 /var/www/login.php(8): phpCAS::isAuthenticated()\n#3 {main}\n  thrown in /var/www/CAS-1.3.2/CAS/Client.php on line 2764,

任何人都可以帮助我.... 请

1 个答案:

答案 0 :(得分:0)

之前我有同样的错误。 我使用java-7的keytool配置tomcat ssl后解决了这个问题。

步骤:

  1. 创建商店

  2. 创建证书

  3. 将密钥库导入java-7