在 ActiveMQ 中加密 Web 控制台密码 [英] Encrypting the Web Console password in ActiveMQ

查看:24
本文介绍了在 ActiveMQ 中加密 Web 控制台密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

作为我们项目的安全要求的一部分,我必须在 jetty-realm.properties 文件中去掉 ActiveMQ 服务器中的明文密码.

I have to get rid of the clear text password in ActiveMQ server in the jetty-realm.properties file as part of the security requirements of our project.

我按照此处找到的加密密码的程序进行操作:https://activemq.apache.org/encrypted-passwords.html.在 Jetty-real.properties 中,我用 ${activemq.password}

I followed the procedure for encrypting passwords found here: https://activemq.apache.org/encrypted-passwords.html. In Jetty-real.properties I replaced plain password with ${activemq.password}

但我无法登录网络控制台 (http://localhost:8161/admin)

But I could not login into the web console (http://localhost:8161/admin)

是否需要更改其他配置参数?任何帮助将不胜感激.

Are there additional config parameters I need to change? Any help would be greatly appreciated.

推荐答案

对于 ecrypt 密码,我们可以使用 jetty 实用程序.这可以从 http://download.eclipse.org/jetty/ 下载.

For ecrypt password we can use jetty utility. This can be downloaded from http://download.eclipse.org/jetty/.

使用:

java -cp lib/jetty-util-$JETTY_VERSION.jar org.eclipse.jetty.util.security.Password admin admin

admin
OBF:1u2a1toa1w8v1tok1u30
MD5:21232f297a57a5a743894a0e4a801fc3
CRYPT:adpexzg3FUZAk

在 bus\conf\jetty.xml\jetty-realm.properties 中添加

Add in bus\conf\jetty.xml\jetty-realm.properties

admin: MD5:21232f297a57a5a743894a0e4a801fc3, admin

这篇关于在 ActiveMQ 中加密 Web 控制台密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆