[
https://issues.apache.org/jira/browse/ARTEMIS-3543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17477237#comment-17477237
]
ASF subversion and git services commented on ARTEMIS-3543:
----------------------------------------------------------
Commit a4b68982f27a69d829396cf71441214f62ce8714 in activemq-artemis's branch
refs/heads/2.19.x from Domenico Francesco Bruscino
[ https://gitbox.apache.org/repos/asf?p=activemq-artemis.git;h=a4b6898 ]
ARTEMIS-3543 Fix encrypted passwords in composite urls
(cherry picked from commit 7988739f41f1c10aae911c64cfd7cb08c1e2bbb0)
> Artemis client doesn't support encrypted passwords in composite urls
> --------------------------------------------------------------------
>
> Key: ARTEMIS-3543
> URL: https://issues.apache.org/jira/browse/ARTEMIS-3543
> Project: ActiveMQ Artemis
> Issue Type: Bug
> Reporter: Domenico Francesco Bruscino
> Assignee: Domenico Francesco Bruscino
> Priority: Major
> Fix For: 2.20.0
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> Artemis Client doesn't support encrypted passwords in composite urls:
> {code}
> 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"
> {code}
>
--
This message was sent by Atlassian Jira
(v8.20.1#820001)