Setting a secure password for Jetty

Document ID : KB000032797
Last Modified Date : 14/02/2018
Show Technical Document Details

  Issue:

   Needing to change or set the secure password for Jetty on the Enterprise Manager.   

  Environment:

  This information is for APM 9.5, but should apply to most versions of APM. Also, the Jetty version was 6.1.26.

  Resolution:

  This will allow you to change the password for Jetty to make the password secure and not 'password"

  Steps to make the change

  When needing to change or reset the password for Jetty, do the following:

   -Find the file jetty-util-<version>.jar (ex: jetty-util-6.1.26.jar), Once you find it, then change to the folder where it was found.

Here is a Windows example for the file:  (ex. C:\CA APM\Introscope9.1.7.0\product\enterprisemanager\configuration\org.eclipse.osgi\bundles\171\1\.cp)

And a Linux equivalent: (ex. /root/Introscope9.6.0.0/product/enterprisemanager/configuration/org.eclipse.osgi/bundles/129/1/.cp)

   -  To run these commands, go to the Command Line Interface and make sure that you are in the correct folder:

java -cp jetty-util-6.1.26.jar;jetty-6.1.26.jar org.mortbay.jetty.security.Password <user> <new password> 

(Windows will use the ";" Semicolon and Unix will use the ":" colon)

  -Once this change is complete then also update the new password in em-jetty-config.xml.

   Refer to the"APM Configuration and Administration Guide"  section: Modify the em-jetty-config.xml to set the password.

 

 Additional Information:

 Depending on the the Jetty version, the command may be a little different.  If you Google Search for "org.mortbay.jetty.security.Password",  then you will find any differences  or explanations.