【问题标题】:How to Configure CAS v4.2.7 to enable X.509 Authentication如何配置 CAS v4.2.7 以启用 X.509 身份验证
【发布时间】:2017-05-22 20:57:05
【问题描述】:
我做了什么

首先,我从github克隆了CAS项目的仓库,切换到标签v4.2.7。 git clone https://github.com/apereo/cas.git git checkout v4.2.7

然后我使用 gradlew 工具构建 ./gradlew

最后我复制了神器./cas-server-webapp/build/libs/cas-server-webapp-4.2.7.war,解压运行,效果很好.

但是由于我想使用 X.509 Authentication 方法配置 CAS,结果令人沮丧,因为登录 Web 流 XML 文件不同:使用 X.509 的所有解决方案身份验证方法首先将 generateLoginTicket 替换为 startAuthenticate,如下所示:https://wiki.jasig.org/display/CASUM/X.509+Certificates,但“generateLoginTicket”在文件 /WEB-INF/webflow/login/ 中消失了4.2.7 版的 login.xml。 而且 CAS 的文档也无济于事,https://apereo.github.io/cas/4.2.x/installation/X509-Authentication.html

I want to study how to configure the CAS v4.2.7 using a X.509 Authentication method. I would be appreciate if you could help me out.

【问题讨论】:

    标签: authentication certificate cas x509


    【解决方案1】:

    根据我个人对 5.0 版本覆盖添加到 pom.xml 的经验

    <dependency>
      <groupId>org.apereo.cas</groupId>
      <artifactId>cas-server-support-x509-webflow</artifactId>
      <version>${cas.version}</version>
    </dependency>
    

    并将适当的 CA 证书添加到服务器密钥库。

    【讨论】:

      猜你喜欢
      • 2014-11-07
      • 1970-01-01
      • 2019-07-22
      • 1970-01-01
      • 2022-06-10
      • 1970-01-01
      • 1970-01-01
      • 2013-07-05
      • 2017-12-26
      相关资源
      最近更新 更多