1. SSH into the unit as admin and from the CLI goto a UNIX prompt as root...
CBS# un su2. Set the
env variable for Java
# export JAVA_HOME=/usr/java/j2re1.4.2_08/NOTE: The path for JAVA_HOME is version-specific to XOS. In testing with XOS 7.1.2 it was found that the path "
/usr/java/j2re1.4.2_08/" without quotes was needed instead of the value shown in the previous example. Please verify the path is correct for this entry for you environment before proceding.
3. Stop the tomcat service
# /etc/init.d/tomcat stop4. It's possible that some of the java processes haven't timed out or shut down completely. To see if this is the case, run the following command...
# ps -eau |grep java5. If you still see a number a processes still running you can kill these processes by running this command.
# killall java6. Begin by backing up the existing configuration files before making changes
# tar cvpf /root/tomcat_conf.tgz /crossbeam/web/conf7. Change to the appropriate directory
# cd /crossbeam/web/conf8. Change the name of the working keystore file
# mv keystore keystore.orig9. Create the new keystore file with the appropriate information. Upon issuing the following command you will be prompted for a password. The password currently is "
changeit" without quotes. If you wish to use a different password, please modify the corresponding entry in the
servers.xml file called "
keypass" accordingly. You can also modify the duration for which the certificate is valid. In the following command we use 365 days (1 yr), but any value (specified in days) through 100 years is valid.
# $JAVA_HOME/bin/keytool -validity 365 -genkey -alias tomcat -keyalg RSA -keystore /crossbeam/web/conf/keystore
Enter keystore password: changeit
What is your first and last name?
[Unknown]: <Enter the FQDN of the server>
What is the name of your organizational unit?
[Unknown]: <Enter your department name here>
What is the name of your organization?
[Unknown]: <Enter your company name here>
What is the name of your City or Locality?
[Unknown]: <City>
What is the name of your State or Province?
[Unknown]: <State>
What is the two-letter country code for this unit?
[Unknown]: <Country Code>
Is CN=cbs1.example.net, OU=Customer Support, O=Crossbeam Systems Inc, L=Dallas, ST=TX, C=US correct?
[no]: yes
Enter key password for <tomcat>(RETURN if same as keystore password):
NOTE: In the above question you can either press
Enter which defaults to the previously entered password, or enter the same password as above. However, any other entry is not supported by Tomcat at this time.
10. Now set the permissions on the file
# chmod 750 ./keystore11. Now set the ownership on the file
# chown tomcat:cbcli keystore12. Start the Tomcat service
# /etc/init.d/tomcat startThe new certificates should now be installed
Workaround
N/A