This article: I. Overview II, Presentation Environment III, JDK installation configuration IV, security certificate Configuration v. Deployment Cas-server related Tomcat VI, deployment cas-client related Tomcat VII, test verification SSO
I. Overview
The purpose of this article is to help first contact SSO and CAS people to provide a starter guide, step-by-step demonstration of how to implement a single sign-on based on CAs.
Official website of CAs: Http://www.jasig.org/cas
Second, demo environment
This article demonstrates that the process is on the same machine (or on three physical machines or three virtual machines), the environment is as follows: Windows7 64 bits, host name: michael-pc JDK 1.6.0_18 Tomcat 6.0.29 cas-server-3.4.11, cas-client-3.2.1 according to the demo requirements, use the method of modifying the Hosts file to add the domain name is easiest (this is very important), in the file C:\Windows\System32\drivers\etc\hosts file add three
1 2 3 |
127.0.0.1 Demo. Micmiu. COM 127.0.0.1 App1. Micmiu. COM 127.0.0.1 app2. Micmiu. Com |
Demo.micmiu.com =>> corresponds to Tomcat for the deployment of CAS server, and this virtual domain name is also used for certificate generation app1.micmiu.com =>> the Tomcat App1 for deployment app2.micmiu.c The OM =>> corresponds to tomcat for deploying APP2
Third, JDK installation configuration
This detailed process is not described, and if the installation version is not available, make sure that the environment variables are configured correctly.
Native environment variable: JAVA_HOME=D:\JDK, if you see the following information, the installation is successful:
Iv. Security Certificate Configuration
For detailed application of Keytool tools see: http://www.micmiu.com/lang/java/keytool-start-guide/
4.1. Generate Certificates: