To install CAS, your machine has to have Tomcat. In ubuntu 14.04, you will easily install Tomcat 7 with command apt-get. It is quite simple, just concern about ssl connection
The first step, install tomcat7 by command:
|
sudo apt-get install tomcat7
|
Next step, you install https for Tomcat. To do that, you need to generate key by using keytool:
|
sudo keytool -keysize 4096 -genkey -alias tomcat -keyalg RSA -keystore cas.keystore
|
Change tomcat config file:
|
sudo vi /etc/tomcat7/server.xml
|
Add content below to server.xml:
|
<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS" keystoreFile="path_to/cas.keystore" keystorePass="password"/>
|
Download Jasig Cas 4.0:
|
sudo wget http://downloads.jasig.org/cas/cas-server-4.0.0-release.zip
unzip cas-server-4.0.0-release.zip
|
Copy war file to Tomcat Web Root:
|
sudo cp modules/cas-server-webapp-4.0.0.war /var/lib/tomcat7/webapps/
|
So now, restart tomcat:
|
sudo /etc/init.d/tomcat7 restart
|
Forward port 443 to port 8443:
|
sudo iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 443 -j REDIRECT --to-port 8443
|
Test:
|
https://[ip_or_domain_to_server]/cas-server-webapp-4.0.0
or
https://[ip_or_domain_to_server]:8443/cas-server-webapp-4.0.0
|
Login CAS with default account: casuser/Mellon
Or you can add new account by editing file: /var/lib/tomcat7/webapps/cas-server-webapp-4.0.0/WEB-INF/deployerConfigContext.xml
Troubleshooting your installation:
|
$ sudo lsof -i :8443
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
java 38773 tomcat7 44u IPv6 74311 0t0 TCP *:8443 (LISTEN)
|
RELATED POSTS
Tidak ada komentar:
Posting Komentar