Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-21352

Allow custom CN on the certificate generated by the automatic keystore management

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • None
    • Security
    • None
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      Problem Definition

      The certificate generated by the automatic keystore management feature has the following CN (common name):

      broker.ks
      ...
      Owner: CN=Bamboo ActiveMQ Broker
      Issuer: CN=Bamboo ActiveMQ Broker
      ...
      

      This creates a problem with the version of ActiveMQ bundled in Bamboo version 6.9.0 and higher. This version of ActiveMQ supports both server and client hostname verification. By default client side hostname verification is enabled. This means we're going to try and compare the CN (common name) of the certificate with the server hostname to verify they match. This won't work because they will not match, as you can see above. We're not issuing certificates that match the hostname of the server.

      This results in the problem described inside the following kb article:

      Some companies would like to benefit from using the automatic keystore management while having hostname verification enabled (socket.verifyHostName=true).

      Suggested Solution

      A few suggestions:

      • Provide a way or mechanism to let Bamboo admins choose the certificate CN (common name).
      • Copy the hostname from the bamboo.jms.broker.client.uri property inside the <Bamboo server home directory>/bamboo.cfg.xml file.

      Workaround

      No workarounds available at the moment.

              Unassigned Unassigned
              brosa Bruno Rosa
              Votes:
              7 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: