Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-3543

Artemis client doesn't support encrypted passwords in composite urls

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.19.1, 2.20.0
    • None
    • None

    Description

      Artemis Client doesn't support encrypted passwords in composite urls:

      SECURE_PASS=securepass
      ENC_SECURE_PASS=$(./bin/artemis mask securepass)
      ENC_SECURE_PASS="ENC(${ENC_SECURE_PASS:8})"
      
      ./bin/artemis create broker --user admin --password admin --require-login
      
      keytool -storetype pkcs12 -keystore ./broker/etc/server-keystore.p12 -storepass $SECURE_PASS -keypass $SECURE_PASS -alias server -genkey -keyalg "RSA" -keysize 2048 -dname "CN=ActiveMQ Artemis Server, OU=Artemis, O=ActiveMQ, L=AMQ, S=AMQ, C=AMQ" -validity 36500 -ext bc=ca:false -ext eku=sA -ext san=dns:localhost,ip:127.0.0.1
      keytool -storetype pkcs12 -keystore ./broker/etc/server-keystore.p12 -storepass $SECURE_PASS -keypass $SECURE_PASS -alias server -exportcert -rfc > server.crt
      keytool -storetype pkcs12 -keystore ./broker/etc/server-truststore.p12 -storepass $SECURE_PASS -keypass $SECURE_PASS -importcert -alias server -file server.crt -noprompt
      
      sed -i "s/0.0.0.0:61616?/0.0.0.0:61616?sslEnabled=true;keyStorePath=server-keystore.p12;keyStorePassword=$ENC_SECURE_PASS;/g" ./broker/etc/broker.xml
      
      ./broker/bin/artemis run
      
      ./broker/bin/artemis producer --verbose --destination queue://TEST.QUEUE --user admin --password admin --protocol core --message-count 1 --url "(tcp://localhost:61616)?sslEnabled=true&trustStorePath=./broker/etc/server-truststore.p12&trustStorePassword=$ENC_SECURE_PASS"
      

       

      Attachments

        Issue Links

          Activity

            People

              brusdev Domenico Francesco Bruscino
              brusdev Domenico Francesco Bruscino
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h