0 Replies Latest reply on Jun 5, 2013 4:04 AM by poonamkamboj

    JBoss A-MQ 6.0 with jasypt password encryption service

    poonamkamboj

      I have installed and configured the jasypt service in JBoss A-MQ 6.0.

       

      Configuration for org.apache.karaf.jaas.cfg

      #

      # Boolean enabling / disabling encrypted passwords

      #

      1. encryption.enabled = true

       

      #

      # Encryption Service name

      #   the default one is 'basic'

      #   a more powerful one named 'jasypt' is available

      #       when installing the encryption feature

      #

      1. encryption.name = jasypt

       

      #

      # Encryption prefix

      #

      1. encryption.prefix = {CRYPT}

       

      #

      # Encryption suffix

      #

      1. encryption.suffix = {CRYPT}

       

      #

      # Set the encryption algorithm to use in Karaf JAAS login module

      # Supported encryption algorithms follow:

      #   MD2

      #   MD5

      #   SHA-1

      #   SHA-256

      #   SHA-384

      #   SHA-512

      #

      1. encryption.algorithm = MD5

       

      #

      # Encoding of the encrypted password.

      # Can be:

      #   hexadecimal

      #   base64

      #

      1. encryption.encoding = base64

       

      Configuration in etc/activemq.xml file

       

      <plugins>

      <jaasAuthenticationPlugin configuration="karaf" />

              </plugins>

       

      <jaas:config name="karaf" rank="1">

      <jaas:module className="org.apache.karaf.jaas.modules.properties.PropertiesLoginModule"

                       flags="required">

      users = $[karaf.base]/etc/users.properties

      </jaas:module>

      </jaas:config>

       

      I get below error in a-mq logs

       

       

      Please let me know correct namespace url for jass:config tag that should be used in activemq.xml?

      Also let me know steps that i might have missed to setup jasypt in A-MQ?