You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by ndipiazza <ni...@gmail.com> on 2012/06/13 16:12:46 UTC
Need to include webconsole-embedded.xml password encryption to the
activemq encrypted passwords documentation
The documentation here: http://activemq.apache.org/encrypted-passwords.html
Does not say anything about how to get the
$ACTIVEMQ_HOME/webapps/admin/WEB-INF/webconsole-embedded.xml to start using
the credentials-enc.properties file, like activemq.xml switched to.
Steps:
Edit - *$ACTIVEMQ_HOME/webapps/admin/WEB-INF/webconsole-embedded.xml*
Replace:
<bean
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<value>file:${activemq.base}/conf/credentials-enc.properties</value>
</property>
</bean>
With:
<bean id="environmentVariablesConfiguration"
class="org.jasypt.encryption.pbe.config.EnvironmentStringPBEConfig">
<property name="algorithm" value="PBEWithMD5AndDES" />
<property name="passwordEnvName" value="ACTIVEMQ_ENCRYPTION_PASSWORD" />
</bean>
<bean id="configurationEncryptor"
class="org.jasypt.encryption.pbe.StandardPBEStringEncryptor">
<property name="config" ref="environmentVariablesConfiguration" />
</bean>
<bean id="propertyConfigurer"
class="org.jasypt.spring.properties.EncryptablePropertyPlaceholderConfigurer">
<constructor-arg ref="configurationEncryptor" />
<property name="location"
value="file:${activemq.conf}/credentials-enc.properties"/>
</bean>
--
View this message in context: http://activemq.2283324.n4.nabble.com/Need-to-include-webconsole-embedded-xml-password-encryption-to-the-activemq-encrypted-passwords-docun-tp4653250.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.