Create a file named application.properties:
touch src/main/resources/application.properties
Now fill in the following details in the application.properties file:
server.context-path=/cas
server.port=6443
server.ssl.key-store=classpath:/etc/cas/thekeystore
server.ssl.key-store-password=changeit
server.ssl.key-password=changeit
cas.server.name: https://localhost:6443
cas.server.prefix: https://localhost:6443/cas
cas.adminPagesSecurity.ip=127.0.0.1
cas.authn.accept.users=casuser::password
The preceding file sets the port and SSL keystore values (a very important step in setting up a CAS server), and also sets up the CAS server config folder. Clearly, we need to create a keystore as indicated in this file.
Please note, the overlay project has a file, namely the build.sh file, that contains most of these details in it. We are manually doing this to have a clear understanding.
The last line in application.properties sets up a test user with the credentials casuser/password, which can be used to log into the CAS server for various demo purposes. This approach is not recommended in the production setup.