If you'd like more information about the use of the CAS by the gazelle tools, please visit the following page : link to CAS page information
sudo apt-get install tomcat7
sudo chgrp -R tomcat7 /etc/tomcat7 sudo chmod -R g+w /etc/tomcat7
<Connector port="8180" protocol="HTTP/1.1" connectionTimeout="20000" URIEncoding="UTF-8" redirectPort="8443" />
<Connector port="8443" protocol="org.apache.coyote.http11.Http11Protocol" maxThreads="150" SSLEnabled="true" scheme="https" secure="true" clientAuth="false" sslProtocol="TLS" allowUnsafeLegacyRenegotiation="true" keystoreFile="/etc/tomcat7/keystore.jks" keystorePass="gazelle" keyAlias="tomcat" keyPass="***" truststoreFile="/etc/tomcat7/truststore.jks" truststorePass="***"/
<Connector port="8109" protocol="AJP/1.3" redirectPort="8443" />
Type your code in the box. To create a new line within the box use SHIFT + ENTER.
keytool -import -alias tomcat -file ***.pem -keystore .truststore.jks
sudo service tomcat7 restart
You need to activate https with the following command :
sudo a2enmod ssl
You need to make redirection for login, logout, cas, image, favicon and serviceValidate.
SSLCertificateFile /etc/ssl/certs/***.pem SSLCertificateKeyFile /etc/ssl/private/***.key
sudo apache2ctl configtest sudo apache2ctl restart
The CAS server application is accessing the Gazelle Test Management database in order to know the username and the credentials of the user. It is necessary that the system that runs the CAS application cas access the postgresql server hosting the Gazelle Test Manager database.
Check it by trying to access the database from the server hosting the CAS :
psql -U gazelle -h localhost gazelle
You may have to edit the the postgresql.conf file and make sure that postgresql is listening on incoming TCP/IP connexions. If the CAS and TM are running on the same machine then you just need to make sure the file postgresql.conf contains the followings:
#------------------------------------------------------------------------------ # CONNECTIONS AND AUTHENTICATION #------------------------------------------------------------------------------ # - Connection Settings - listen_addresses = 'localhost' # what IP address(es) to listen on; # comma-separated list of addresses; # defaults to 'localhost', '*' = all # (change requires restart) port = 5432 # (change requires restart)
If you have to change the postgresql.conf file, then you need to restart postgresql and the jboss application server.
Your CAS is now activated !