Generic CAS maven war overlay to exercise the latest versions of CAS. This overlay could be freely used as a starting template for local CAS maven war overlays. The CAS services management overlay is available here.
<cas.version>4.2.2</cas.version>
- JDK 1.7+
The etc
directory contains the configuration files that need to be copied to /etc/cas
.
Current files are:
cas.properties
log4j2.xml
mvnw clean package
or
mvnw.bat clean package
Create a Java keystore at /etc/cas/jetty/thekeystore
with the password 123456
.
sudo keytool -genkey -alias thekeystore -keyalg RSA -validity 365 -keystore thekeystore.keystore
sudo keytool -export -alias thekeystore -file thekeystore.crt
Import your CAS server certificate inside this keystore.
sudo keytool -import -file thekeystore.crt -keystore $JAVA_HOME/jre/lib/security/cacerts -alias thekeystore
mvnw jetty:run-forked
CAS will be available at:
http://cas.server.name:8080/cas
https://cas.server.name:8443/cas
Deploy resultant target/cas.war
to a Servlet container of choice.