git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@992975 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Bosanac Dejan 2010-09-06 09:00:56 +00:00
parent 8ef1d794f7
commit 97708f9f8e
1 changed files with 13 additions and 1 deletions

View File

@ -21,10 +21,12 @@
http://activemq.apache.org/security.html http://activemq.apache.org/security.html
Beofre you can run this configuration, you need to set ACTIVEMQ_ENCRYPTION_PASSWORD environment variable, like Before you can run this configuration, you need to set ACTIVEMQ_ENCRYPTION_PASSWORD environment variable, like
$ export ACTIVEMQ_ENCRYPTION_PASSWORD=activemq $ export ACTIVEMQ_ENCRYPTION_PASSWORD=activemq
For more information see: http://activemq.apache.org/encrypted-passwords.html
To run ActiveMQ with this configuration add xbean:conf/activemq-security.xml to your command To run ActiveMQ with this configuration add xbean:conf/activemq-security.xml to your command
e.g. $ bin/activemq console xbean:conf/activemq-security.xml e.g. $ bin/activemq console xbean:conf/activemq-security.xml
@ -51,6 +53,16 @@
<property name="location" value="file:${activemq.base}/conf/credentials-enc.properties"/> <property name="location" value="file:${activemq.base}/conf/credentials-enc.properties"/>
</bean> </bean>
<!--
Use this configuration if you don't want to set encryptor password using environment variable
Note however, that with this solution your passwords can be easily decrypted once the encrypter password is known
<bean id="configurationEncryptor" class="org.jasypt.encryption.pbe.StandardPBEStringEncryptor">
<property name="algorithm" value="PBEWithMD5AndDES"/>
<property name="password" value="activemq"/>
</bean>
-->
<broker useJmx="true" persistent="false" xmlns="http://activemq.apache.org/schema/core" destroyApplicationContextOnStop="true"> <broker useJmx="true" persistent="false" xmlns="http://activemq.apache.org/schema/core" destroyApplicationContextOnStop="true">
<plugins> <plugins>