Setting a secure password for Jetty
search cancel

Setting a secure password for Jetty

book

Article ID: 32797

calendar_today

Updated On:

Products

CA Application Performance Management Agent (APM / Wily / Introscope) INTROSCOPE

Issue/Introduction

  Issue:

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

Environment

APM 10.7, but should apply to most versions of APM. Also, the Jetty version was 9.4.30.

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-9.4.30.v20200611.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\Introscope10.7.0.90\product\enterprisemanager\configuration\org.eclipse.osgi\bundles\195\1\.cp)

And a Linux equivalent: (ex. /root/Introscope10.7.0.90/product/enterprisemanager/configuration/org.eclipse.osgi/bundles/195/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-9.4.30.v20200611.jar;jetty-util-9.4.30.jar org.eclipse.jetty.util.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.eclipse.jetty.util.security.Password",  then you will find any differences  or explanations.