Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-9064

Encryptionnotpossibleexception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 5.16.4, 5.17.0, 5.16.5
    • None
    • Security/JAAS
    • None

    Description

      I tried configuring the encryption algorithm  PBEWithMD5AndDES as given. When I try to change the algorithm to anyone of the below, and try encrypt and decrypt command it is working good. I am able to encrypt and add it to the credentials-enc  file with ENC(encryptedvalue). When I try bringing the application up we are getting encryption not possibleexception. I need an help to resolve this issue

       

         PBEWITHHMACSHA224ANDAES_128

         PBEWITHHMACSHA224ANDAES_256

         PBEWITHHMACSHA256ANDAES_128

         PBEWITHHMACSHA256ANDAES_256

         PBEWITHHMACSHA384ANDAES_128

         PBEWITHHMACSHA384ANDAES_256

         PBEWITHHMACSHA512ANDAES_128

         PBEWITHHMACSHA512ANDAES_256

       

       

      <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.spring4.properties.EncryptablePropertyPlaceholderConfigurer">
            <constructor-arg ref="configurationEncryptor" /> 
            <property name="location" value="file:${activemq.conf}/credentials-enc.properties"/> 
        </bean> 
        

       

      <simpleAuthenticationPlugin>
                  <users>
              <authenticationUser username="${admin.username}" password="${admin.password}"
                  groups="users,admins"/>
                      <authenticationUser username="${activemq.username}" password="${activemq.password}"
                          groups="users,admins"/>
                      <authenticationUser username="${testuser.username}" password="${testuser.password}"
                          groups="users"/>
                      <authenticationUser username="${testguest.username}" password="${testguest.password}" groups="guests"/>
           
                  </users>
              </simpleAuthenticationPlugin>

       

      credentials-enc

      activemq.username=system
      activemq.password=ENC(DCpgizp1wVsWUfpxct1/zQ==)
      admin.username=admin
      admin.password=ENC(UFUkexkcukvQdh298wVR2w==)
      testuser.username=testuser
      testuser.password=ENC(DCpgizp1wVsWUfpxct1/zQ==)
      testguest.username=testguest
      testguest.password=ENC(DCpgizp1wVsWUfpxct1/zQ==)

      Attachments

        Activity

          People

            jbonofre Jean-Baptiste Onofré
            Sureshkumar.jayapal Sureshkumar Jayapal
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: