activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ndipiazza <nicholas.dipia...@gmail.com>
Subject Need to include webconsole-embedded.xml password encryption to the activemq encrypted passwords documentation
Date Wed, 13 Jun 2012 14:12:46 GMT
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.

Mime
View raw message