SSO CAs single sign-on instance demo

Source: Internet
Author: User
Tags cas

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:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.