You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by LuisLo <he...@gmail.com> on 2020/03/11 17:15:29 UTC
Encrypt activemq configuration files
Hi.
We cannot encrypt the activemq configuration files (karaf 4.2.4, amq
5.15.11)
We would like to know how to encrypt the jms_users.properties passwords
We have followed the following steps:
activemq.xml
<plugins>
<jaasAuthenticationPlugin configuration = "activemq" />
...
jaasSecurity.xml
<cm:property-placeholder persistent-id="org.apache.karaf.jaas.db"
update-strategy="reload">
<cm:default-properties>
<cm:property name="jms_users" value="etc/jms_users.properties"/>
<cm:property name="jms_groups"
value="etc/jms_groups.properties"/>
</cm:default-properties>
</cm:property-placeholder>
<jaas: config name = "activemq" rank = "10">
<jaas: module className =
"org.apache.activemq.jaas.PropertiesLoginModule" flags = "required">
org.apache.activemq.jaas.properties.user = $ {jms_users}
org.apache.activemq.jaas.properties.group = $ {jms_groups}
</ jaas: module>
</ jaas: config>
jms_users.properties
admin = 12345
terminalTopic = 12345
--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html