The following are the minimal steps and requirements to install the IE module in Apache Tomcat container.
Requirements:
Enabling grid security (applies only to Linux systems, preferably RH Enterprise based, e.g. Scientific Linux). Host certificates must be installed on the machine that will run IE.
[glite-UI]
name=gLite 3.1 User Interface
baseurl=http:////linuxsoft.cern.ch/EGEE/gLite/R3.1/glite-UI/sl4/i386/// enabled=1 [CA] name=CAs baseurl=http://linuxsoft.cern.ch/LCG-CAs/current//
enabled=1
/etc/cron.daily/fetch-crl.sh:
CRLDIR=${X509_CERT_DIR
etc/grid-security/certificates}
/usr/sbin/fetch-crl –loc ${CRLDIR} –out \
${CRLDIR} –no-check-certificate 2>&1 1>/dev/null
Remember to chmod (executable) the created file. It is recommendable to test-run the script immediately.
- Edit build.properties:
- Set the target folder for the compiled classes, created jars and generated javadocs (e.g. project.build=build).
- Set the name for the project (e.g. project.name=testIE) This is the name of both the project, of the webapp under which it will be deployed and it is part of the URL for the web-service.
- Set the host name (e.g. host.name=somehost.somedomain.)
- Set the port number on which the IE will run. (e.g. port.no=8080 for usecure-http or 8443 for secure-https). That is the same port number on which your Tomcat will run.
- Set security flag to enable/disable the grid security (e.g. security=true.) Port number must be set accordingly and if set to true, configure tomcat security.
- Set jms.provider.path pointing to the directory where your jms provider libraries reside.
- Configure Tomcat to enable https by editing $CATALINA_HOME/conf/server.xml. Add the following:
<!-- gLite https for IE delegation. -->
<Connector port="8443"
maxThreads="150"
minSpareThreads="25"
maxSpareThreads="75"
enableLookups="false"
disableUploadTimeout="true"
acceptCount="100"
debug="0"
scheme="https"
secure="true"
clientAuth="true"
sslProtocol="TLS"
sslCAFiles="/etc/grid-security/certificates/*.0"
crlFiles="/etc/grid-security/certificates/*.r0"
sslKey="$CATALINA_HOME/conf/hostkey.pem"
sslCertFile="$CATALINA_HOME/conf/hostcert.pem"
sSLImplementation="org.glite.security.trustmanager.tomcat.TMSSLImplementation" />
Beware that the sslKey and sslCertFile must be readable by the user that runs Tomcat. If possible, link (not symbolic!) the certificate and the key (see above, point 4 of security requirement) to the same-name files in $CATALINA_HOME/conf/. Set the correct ownership and permissions. It is advisable to disable http (non-secure) connections.