This document describes how to get the Trasport Testing Tool configured on
your own hardware or instance installing "from scratch" using the ttt.war or using the
VMWare Image.
Assign DNS domain
SMPT server for sending validation reports
Create and install encryption cert tied to this domain
Open the following inbound ports.
TCP Port (Service) Source
22 (SSH) 0.0.0.0/0
25 (SMTP) 0.0.0.0/0
8080 (HTTP*) 0.0.0.0/0
Setup a static ip and a domain name. Create a static IP and associate
it with a domain name.
In this example, we will use the IP "123.123.123.123" and the hostnme
"example.com".
Setup the A, CNAME as show below.
Type: Source: Destination:
----------- ---------------- ---------------
A Record *.example.com 123.123.123.123
A Record example.com 123.123.123.123
CNAME Record mail.example.com example.com
CNAME Record smtp.example.com example.com
Setup the MX (Mail) Records as shown below.
mail.example.com 20
smtp.example.com 10
Installing using the VMWare Image:
The tool is packaged as a VMWare image and can be ran using VMWarePlayer and
other VMWare tools.
The basic steps are as follows:
Fetch the Necessary Prerequisites:
sudo apt-get update
sudo apt-get install git-core openjdk-7-jdk
wget http://mirrors.ibiblio.org/apache/tomcat/tomcat-5/v5.5.36/bin/apache-tomcat-5.5.36.tar.gz
tar -zxvf apache-tomcat-5.5.36.tar.gz
wget http://foo.com/yourcerts.tar.gz
tar -zxvf yourcerts.tar.gz
cp yourcerts/* /home/ubuntu/apache-tomcat-5.5.36/webapps/ttt/pubcert
Setup JAVA_HOME and CATALINA_HOME:
export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-amd64
echo "export JAVA_HOME=$JAVA_HOME" >> ~/.bashrc
export JAVA_OPTS="-Xmx256m -XX:MaxPermSize=256m"
echo "export JAVA_OPTS=$JAVA_OPTS" >> ~/.bashrc
export CATALINA_HOME=/home/ubuntu/apache-tomcat-5.5.36
echo "export CATALINA_HOME=$CATALINA_HOME" >> ~/.bashrc
source ~/.bashrc
Verify Java 7 is Installed:
java -version
Install Cryptographic Extensions:
You must fetch the "jce_policy-1_4_2.zip" file from Oracle's website. Then you
can follow the instructions below.
unzip jce_policy-1_4_2.zip
sudo cp jce/US_export_policy.jar $JAVA_HOME/jre/lib/security
sudo cp jce/local_policy.jar $JAVA_HOME/jre/lib/security
Follow the Instructions to Customize the Configuration File
Start the Tomcat Server
Not you will most likely need to adjust the configuration file before completing
the next step.
cp apache-tomcat-5.5.36/bin
sudo ./startup.sh
The tool is packaged as a VMWare image and can be ran using VMWarePlayer and
other VMWare tools.
The basic steps are as follows:
Save the file.
Restart Tomcat
sudo /etc/init.d/tomcat restart
The new values are now applied to the server and your system should be configured.
Change this setting:
direct.reporting.privKeyPassword:
To:
direct.reporting.privKeyPassword: yourpassword
Change the SMTP settings:
direct.reporting.mail.host: spamav1.nist.gov
direct.reporting.mail.from: direct-testing@hit-testing.nist.gov
direct.reporting.mail.smtp.port: 25
direct.reporting.mail.smtp.auth:
direct.reporting.mail.smtp.starttls: false
direct.reporting.mail.smtp.user: direct-testing
direct.reporting.mail.smtp.password: RealPasswordGoesHere
direct.reporting.mail.debug: false
To:
direct.reporting.mail.host: example.com
direct.reporting.mail.from: direct-testing@example.com
direct.reporting.mail.smtp.port: 25
direct.reporting.mail.smtp.auth:
direct.reporting.mail.smtp.starttls: false
direct.reporting.mail.smtp.user: direct-testing
direct.reporting.mail.smtp.password: your-smtp-passord
direct.reporting.mail.debug: false
Change the following settings:
direct.reporting.directory: /usr/share/tomcat/ttt/webapps/ROOT/direct/
direct.reporting.baseurl: http://hit-testing.nist.gov:9100/direct/
To:
direct.reporting.directory: /usr/share/tomcat/ttt/webapps/ROOT/direct/
direct.reporting.baseurl: http://example.com:8080/direct/
In the following settings, Change the host names from hit-testing.nist.gov:
direct.reporting.ccdatype.directTo1: direct-clinical-summary@hit-testing.nist.gov
.
.
direct.reporting.ccdatype.directTo2: direct-ambulatory@hit-testing.nist.gov
.
.
direct.reporting.ccdatype.directTo3: direct-ambulatory@hit-testing.nist.gov
.
.
direct.reporting.ccdatype.directTo4: direct-ambulatory@hit-testing.nist.gov
.
.
direct.reporting.ccdatype.directTo5: direct-inpatient@hit-testing.nist.gov
.
.
direct.reporting.ccdatype.directTo6: direct-inpatient@hit-testing.nist.gov
.
.
direct.reporting.ccdatype.directTo7: direct-inpatient@hit-testing.nist.gov
.
.
direct.reporting.ccdatype.directTo8: direct-vdt-ambulatory@hit-testing.nist.gov
.
.
direct.reporting.ccdatype.directTo9: direct-vdt-inpatient@hit-testing.nist.gov
.
.
direct.reporting.ccdatype.directTo10: ccda@hit-testing.nist.gov
.
.
direct.toolkit.dns.domain: hit-testing.nist.gov
.
.
direct.toolkit.smtp.domain: smtp.hit-testing.nist.gov
To:
direct.reporting.ccdatype.directTo1: direct-clinical-summary@example.com
.
.
direct.reporting.ccdatype.directTo2: direct-ambulatory@example.com
.
.
direct.reporting.ccdatype.directTo3: direct-ambulatory@example.com
.
.
direct.reporting.ccdatype.directTo4: direct-ambulatory@example.com
.
.
direct.reporting.ccdatype.directTo5: direct-inpatient@example.com
.
.
direct.reporting.ccdatype.directTo6: direct-inpatient@example.com
.
.
direct.reporting.ccdatype.directTo7: direct-inpatient@example.com
.
.
direct.reporting.ccdatype.directTo8: direct-vdt-ambulatory@example.com
.
.
direct.reporting.ccdatype.directTo9: direct-vdt-inpatient@example.com
.
.
direct.reporting.ccdatype.directTo10: ccda@example.com
.
.
direct.toolkit.dns.domain: example.com
.
.
direct.toolkit.smtp.domain: example.com
Save the file.
Restart Tomcat
sudo /etc/init.d/tomcat restart
The new values are now applied to the server and your system should be configured.