How to obfuscate the password for Jetty?
search cancel

How to obfuscate the password for Jetty?

book

Article ID: 267403

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

How can the AWI password within the configuration.properties be encrypted/obfuscated?

Environment

Release: 21.0.X

Cause

How To.

Resolution

The https.keystore.password and https.manager.password can be encrypted with the Jetty util that can be downloaded here: https://repo1.maven.org/maven2/org/eclipse/jetty/jetty-util/

Command line to obfuscate the password:

java -cp jetty-util-9.4.50.v20221201.jar org.eclipse.jetty.util.security.Password <password>

I.e.

java -cp jetty-util-9.4.50.v20221201.jar org.eclipse.jetty.util.security.Password changeit
2023-05-11 12:02:05.498:INFO::main: Logging initialized @180ms to org.eclipse.jetty.util.log.StdErrLog
changeit
OBF:1vn21ugu1saj1v9i1v941sar1ugw1vo0
MD5:b91cd1a54781790beaa2baf741fa6789

Now add the obfuscated password in the configuration.properties including the string OBF:

https.keystore.password=OBF:1vn21ugu1saj1v9i1v941sar1ugw1vo0
https.manager.password=OBF:1vn21ugu1saj1v9i1v941sar1ugw1vo0