diff --git a/CASA-auth-token/java/server/Jaas/linux/client_keystore_setup.sh b/CASA-auth-token/java/server/Jaas/linux/client_keystore_setup.sh
index a509d605..60134f3c 100755
--- a/CASA-auth-token/java/server/Jaas/linux/client_keystore_setup.sh
+++ b/CASA-auth-token/java/server/Jaas/linux/client_keystore_setup.sh
@@ -40,11 +40,14 @@ if [ -f /etc/CASA/authtoken/keys/client/jks-store ]; then
else
if [ -f /etc/CASA/authtoken/keys/casaatsdSigningCert ]; then
echo "Setting up the clients's keystore"
+
+ KEYTOOL_PATH=/usr/lib/jvm/java-1.5.0-ibm/bin/keytool
+
# Import the certificate to the client's keystore
- /usr/lib/jvm/java-1.5.0-ibm/bin/keytool -import -noprompt -keystore /etc/CASA/authtoken/keys/client/jks-store -alias signingCert -storepass secret -keypass secret -file /etc/CASA/authtoken/keys/casaatsdSigningCert
+ $KEYTOOL_PATH -import -noprompt -keystore /etc/CASA/authtoken/keys/client/jks-store -alias signingCert -storepass secret -keypass secret -file /etc/CASA/authtoken/keys/casaatsdSigningCert
# List the content's of the client's keystore
- #/usr/lib/jvm/java-1.5.0-ibm/bin/keytool -list -rfc -keystore client/jks-store -alias signingCert -storepass secret
+ #$KEYTOOL_PATH -list -rfc -keystore client/jks-store -alias signingCert -storepass secret
else
echo "File /etc/CASA/authtoken/keys/casaatsdSigningCert not found"
fi
diff --git a/CASA-auth-token/java/server/Svc/README b/CASA-auth-token/java/server/Svc/README
index 80edf14e..37da4acb 100644
--- a/CASA-auth-token/java/server/Svc/README
+++ b/CASA-auth-token/java/server/Svc/README
@@ -96,11 +96,10 @@ The following is an example svc.settings file:
43200
10
- /home/jluciani/jakarta-tomcat-5.0.28/webapps/CasaAuthTokenSvc/WEB-INF/conf/iaRealms.xml
+ /etc/CASA/authtoken/svc/iaRealms.xml
60
- o=novell
signingKey
- foobar
+ secret
Note the following about the sample svc.settings file:
@@ -129,12 +128,6 @@ Note the following about the sample svc.settings file:
initialized, thus requiring that the servlet be re-initialized to make configuration
changes take effect.
-- The startSearchContext setting specifies the begin location for initiating
- context searches. The absence of this setting will result in searches ocurring
- from the root of the tree. This setting or an equivalent setting will be moved
- to the identity abstraction configuration file where it belongs. Once this is done,
- the setting will no longer be recognized within the svc.settings file.
-
- The SigningKeyAliasName setting specifies the alias name of the entry in the keystore
with the private key utilized to sign tokens. The value of this setting defaults to
"signingKey".
@@ -174,7 +167,7 @@ authenticate to them with the exception of when the service resides in the same
ATS in which case the host folder name is "localhost" and the host name specified by the
application is the host's DNS name.
-The services folder must contain an auth.policy file, an authtoken.settings file,
+The services folder can contain an auth.policy file, an authtoken.settings file,
and an identoken.settings file. In the absence of any one of those files or if the service
is not explicitedly configured, the ATS will default to utilizing the files present under
its conf folder.
diff --git a/CASA-auth-token/java/server/Svc/linux/server_keystore_setup.sh b/CASA-auth-token/java/server/Svc/linux/server_keystore_setup.sh
index 739f84af..41aca13b 100755
--- a/CASA-auth-token/java/server/Svc/linux/server_keystore_setup.sh
+++ b/CASA-auth-token/java/server/Svc/linux/server_keystore_setup.sh
@@ -27,11 +27,11 @@
# #
# CASA ATS Keystore Setup Script. #
# #
-# This script sets up a keystore for the ATS with a key #
-# pair which the ATS will use for signing authentication #
-# and session tokens. #
+# An ATS signs tokens and communicates with clients over #
+# SSL. This scrip sets up the necessary key-pairs and #
+# certificates for the ATS to perform these functions. #
# #
-# Ths script creates a self signed certificate that it then #
+# For token signing purposes, this scrip creates a self signed certificate that it then #
# exports. At this time it is sufficient to utilize self #
# signed certificates because they are meant to be consumed #
# by entities of the local box. #
@@ -45,18 +45,24 @@ if [ -f /etc/CASA/authtoken/keys/server/jks-store ]; then
chown casaatsd:casaauth /etc/CASA/authtoken/keys/server/jks-store
else
echo "Setting up the server's keystore"
+
+ KEYTOOL_PATH=/usr/lib/jvm/java-1.5.0-ibm/bin/keytool
+
# Create the server keystore with the key that will be used for signing tokens
host=`hostname -f`
- /usr/lib/jvm/java-1.5.0-ibm/bin/keytool -genkey -alias signingKey -keystore /etc/CASA/authtoken/keys/server/jks-store -dname "cn=casaatsd@$host" -validity 3600 -keypass secret -storepass secret
+ $KEYTOOL_PATH -genkey -alias signingKey -keystore /etc/CASA/authtoken/keys/server/jks-store -dname "cn=casaatsd@$host" -validity 3600 -keypass secret -storepass secret
# Export self-signed certificate for the signing key
- /usr/lib/jvm/java-1.5.0-ibm/bin/keytool -export -keystore /etc/CASA/authtoken/keys/server/jks-store -alias signingKey -storepass secret -keypass secret -file /etc/CASA/authtoken/keys/casaatsdSigningCert
-
- # List the contents of the server's keystore
- #usr/lib/jvm/java-1.5.0-ibm/bin/keytool -list -rfc -keystore /etc/CASA/authtoken/keys/server/jks-store -alias signingKey -storepass secret
+ $KEYTOOL_PATH -export -keystore /etc/CASA/authtoken/keys/server/jks-store -alias signingKey -storepass secret -keypass secret -file /etc/CASA/authtoken/keys/casaatsdSigningCert
# Print the exported cert
- #usr/lib/jvm/java-1.5.0-ibm/bin/keytool -printcert -file /etc/CASA/authtoken/keys/casaatsdSigningCert
+ #$KEYTOOL_PATH -printcert -file /etc/CASA/authtoken/keys/casaatsdSigningCert
+
+ # Create a key for Tomcat to do SSL communications
+ $KEYTOOL_PATH -genkey -alias tomcat -keyalg RSA -keystore /etc/CASA/authtoken/keys/server/jks-store -dname "cn=$host" -validity 3600 -keypass secret -storepass secret
+
+ # List the contents of the server's keystore
+ #$KEYTOOL_PATH -list -rfc -keystore /etc/CASA/authtoken/keys/server/jks-store -storepass secret
# Make sure that the keystore is only accessible by the service
chown casaatsd:casaauth /etc/CASA/authtoken/keys/server/jks-store
diff --git a/CASA-auth-token/java/server/Svc/svc.settings b/CASA-auth-token/java/server/Svc/svc.settings
index b6f34326..0cee0ee2 100644
--- a/CASA-auth-token/java/server/Svc/svc.settings
+++ b/CASA-auth-token/java/server/Svc/svc.settings
@@ -1,5 +1,4 @@
/etc/CASA/authtoken/svc/iaRealms.xml
- 43200
diff --git a/CASA-auth-token/java/server/Svc/tomcat5/conf/linux/server-ibm.xml b/CASA-auth-token/java/server/Svc/tomcat5/conf/linux/server-ibm.xml
new file mode 100644
index 00000000..9f73800f
--- /dev/null
+++ b/CASA-auth-token/java/server/Svc/tomcat5/conf/linux/server-ibm.xml
@@ -0,0 +1,385 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ factory
+ org.apache.catalina.users.MemoryUserDatabaseFactory
+
+
+ pathname
+ conf/tomcat-users.xml
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/CASA-auth-token/java/server/Svc/tomcat5/conf/linux/server-sun.xml b/CASA-auth-token/java/server/Svc/tomcat5/conf/linux/server-sun.xml
new file mode 100644
index 00000000..47519d12
--- /dev/null
+++ b/CASA-auth-token/java/server/Svc/tomcat5/conf/linux/server-sun.xml
@@ -0,0 +1,385 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ factory
+ org.apache.catalina.users.MemoryUserDatabaseFactory
+
+
+ pathname
+ conf/tomcat-users.xml
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+