You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Martin Lichtin <li...@yahoo.com.INVALID> on 2020/03/25 08:18:08 UTC
activemq.xml - configuring SSL context
Hi All
Configuring the broker SSL context with
<sslContext>
<sslContext keyStore="mycert.jks" keyStorePassword="mypass" />
</sslContext>
seems quite rigid and the password a security issue.
Is there a better way to do this? I couldn't really find a solution looking at the XSD.
For example, using a bean to offer the SSLContext
<bean id="mySslContext" class="pack.age.MySslContext" />
and then referring to it
<sslContext>
<sslContext useContext="#mySslContext" />
</sslContext>
Just an idea. I'm hoping there are other, already available, solutions.
- Martin
Re: activemq.xml - configuring SSL context
Posted by brusdev <br...@gmail.com>.
Hi Martin,
what about using system properties:
<sslContext>
<sslContext keyStore="${xxx.keyStore}"
keyStorePassword="${xxx.keyStorePassword}" />
</sslContext>
Regards,
Domenico
--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html
Re: activemq.xml - configuring SSL context
Posted by Jean-Baptiste Onofre <jb...@nanthrax.net>.
Hi,
It’s also possible to pass SSL configuration via the system properties.
Regards
JB
> Le 25 mars 2020 à 09:18, Martin Lichtin <li...@yahoo.com.INVALID> a écrit :
>
> Hi All
>
> Configuring the broker SSL context with
>
> <sslContext>
> <sslContext keyStore="mycert.jks" keyStorePassword="mypass" />
> </sslContext>
>
> seems quite rigid and the password a security issue.
> Is there a better way to do this? I couldn't really find a solution looking at the XSD.
>
> For example, using a bean to offer the SSLContext
>
> <bean id="mySslContext" class="pack.age.MySslContext" />
>
> and then referring to it
>
> <sslContext>
> <sslContext useContext="#mySslContext" />
> </sslContext>
>
> Just an idea. I'm hoping there are other, already available, solutions.
>
> - Martin
>