First of all,pls excuse for my poor English
in China, we use English as "Chinglish"
I wanna use the Yale's CAS to solve Single Sign-On problem in my web app,
I followed the step mentioned in this article:
http://www-128.ibm.com/developerworks/web/library/wa-singlesign/ 1.I enable the SSL for my
Tomcat 5.5
just uncomment the SSL configuration in the %catalina_home%\conf\server.xml.
2.Make a new self-assign credential
%java_home%\bin\keytool -genkey -alias tomcat -keyalg RSA
password is "changeit" and input "localhost" for the first&last name
then
%java_home%\bin\keytool -export -alias tomcat -file server.crt
then
%java_home%\bin\keytool -import -file server.crt -keystore %java_home%/jre/lib/security/cacerts
after complete all above, I open my IE and input "https://localhost:8443" for test.it's look fine because I see the tomcat welcome page clearly.
3.I copy the cas-server-3.0.2\cas-server-3.0.2\target\cas.war file to %catalina_home%\webapps.
4.put the cas-client-java-2.1.1\dist\casclient.jar into %catalina_home%\common\lib.
5.Modified the %catalina_home%webapps\servlets-examples\WEB-INF\web.xml to add the CAS filter,like this:
6.start up my Tomcat,everything seems OK
then I access the page
https://localhost:8443/servlets-examples the CAS filter redirect me to the CAS login screen,The default authenticator simply requires me to enter the same
string for both the username and password,so I enter "aa" for both the username and password then click the login button.
after that the CAS should redirect me to the servlet-exaxmlple but it doesn't,the only thing I can see is "can not find the server, cannot open this page".
Could you please tell me if any thing i did wrong?
what can i do to deal with the problem?
thank you very much!!
li lei from China
[ December 22, 2005: Message edited by: lei li ]