You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Clebert Suconic (Jira)" <ji...@apache.org> on 2021/12/15 13:59:00 UTC

[jira] [Closed] (ARTEMIS-3543) Artemis client doesn't support encrypted passwords in composite urls

     [ https://issues.apache.org/jira/browse/ARTEMIS-3543?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Clebert Suconic closed ARTEMIS-3543.
------------------------------------

> 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)