Skip to content

ManagementContext should support sslContext injection #1699

@jbonofre

Description

@jbonofre

If an user wants to use SSL with JMX, the only option today is to configure via the command line (-Dcom.sun.management.jmxremote.port=xxxx -Dcom.sun.management.jmxremote.ssl=true).

This configuration doesn't use the sslContext meaning that the user might have to duplicate the SSL configuration two times:

  • the sslContext in activemq.xml that can be used in transportConnector
  • the same configuration via the command line (com.sun.management.jmxremote*)

It would be great to be able to inject the sslContext in the <managementContext/> to use an unique configuration.

Something like:

    <sslContext>
      <sslContext id="fooContext"
        keyStore="file:./path/broker2.ks" keyStorePassword="password"
        trustStore="file:./path/client2.ks" trustStorePassword="password"/>
    </sslContext>

    <managementContext>
        <managementContext createConnector="true" sslContext="#fooContext"/>
    </managementContext> 

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions