Coder Social home page Coder Social logo

casserver's Introduction

关键步骤

基础环境:

casServer jdk8 tomcat8以上

casClient jdk7 tomcat7

1、证书生成及添加

2、tomcat https配置

3、服务端代码下载及配置

4、客户端代码下载及配置

证书生成及添加

服务端生成数字证书的命令

keytool -genkey -keystore "D:\cas-chenjie\wo_cas.keystore" -alias "wo_cas" -keyalg "RSA" -validity 36500 -dname "CN=localhost, OU=org, O=org.cj, L=南京, ST=江苏, C=**" -keypass "wo_cas" -storepass "wo_cas"

服务端导出cer证书文件的命令

keytool -alias "wo_cas" -exportcert -keystore "D:\cas-chenjie\wo_cas.keystore" -file "D:\cas-chenjie\wo_cas.cer" -storepass "wo_cas"

客户端JRE中导入服务端cer证书的命令

keytool -import -alias "wo_cas" -keystore "D:\Program Files\Java\jdk1.8.0_91\jre\lib\security\cacerts" -file "D:\cas-chenjie\wo_cas.cer" -trustcacerts -storepass changeit

删除证书

keytool -delete -alias "wo_cas" -keystore "D:\Program Files\Java\jdk1.8.0_91\jre\lib\security\cacerts"

tomcat https配置

<Connector SSLEnabled="true" clientAuth="false" connectionTimeout="20000" keystoreFile="D:\\cas-chenjie\\wo_cas.keystore" keystorePass="wo_cas" maxThreads="150" port="8090" protocol="HTTP/1.1" scheme="https" secure="true" sslProtocol="TLS"/>

注意:路径和密码

服务端代码下载及配置

代码下载

https://github.com/watemei/casServer

建库(mysql)

创建dbname 为cas

导入doc/cas.sql文件

eclipse中设置tomcat

avatar

修改配置文件deployerConfigContext.xml

数据库连接

avatar

启动tomcat

avatar

输入https:localhost:8090/casServer

avatar 输入cj cj 登录成功

avatar

客户端代码下载及配置

https://github.com/watemei/casClient

修改web.xml

avatar

启动casClient1

avatar

首次访问 跳转到casServer输入cj cj登录

avatar

登录成功跳转回casClent

avatar

avatar

跨应用授权

启动casClient2

avatar

cas部署问题汇总

官网

cas-overlay-tempate

cas部署问题汇总

单点登录cas综述之cas4.2.7服务端+cas客户端+示例程序+环境搭建说明-陈杰

casserver's People

Contributors

watemei avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.