AMQ 7: unable to use custom codec with broker-connection truststore password
Issue
In the following configuration:
<broker-connections>
<amqp-connection uri="tcp://localhost:5673?sslEnabled=true;verifyHost=true;trustStorePath=server.ts;trustStorePassword=ENC(encodedPassword)" name="mirror" user="myuser" password="ENC(encodedPassword)">
<mirror></mirror>
</amqp-connection>
</broker-connections>
the trustStorePassword will not use a custom codec, e.g.:
<password-codec>org.apache.activemq.artemis.codec.InsecureCodec</password-codec>
In instead uses the default codec:
ERROR [org.apache.activemq.artemis.core.server] AMQ224000: Failure in initialisation
java.lang.IllegalArgumentException: AMQ219057: Error decoding password
...
Caused by: java.lang.IllegalArgumentException: Password must be encrypted.
at org.apache.activemq.artemis.utils.DefaultSensitiveStringCodec$BlowfishAlgorithm.decode(DefaultSensitiveStringCodec.java:176) ~[artemis-commons-2.28.0.redhat-00003.jar:?]
...
Environment
- Red Hat AMQ
- 7.11.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.