Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-3989

ActiveMQSslConnectionFactory.setKeyAndTrustManagers does not work with failover enabled using 5.7 snapshot Jars

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.5.1, 5.6.0, 5.7.0
    • 5.7.0
    • None
    • None
    • GNU/Linux (shouldn't matter too much) using a SslBroker embedded in Java code running in Tomcat (I've tested it without Tomcat and the same thing happens).

    Description

      I've been using ActiveMQ with SSL enabled for months now. After enabling failover on the broker and connecting using a failover URL I get this error:

      certificate_unknown

      I find two workaround: one using System.setProperty, the other using Thread.setSslContext. But these are workarounds and I'd rather do things the appropriate way.

      This is similar to the issue posted in this JIRA:
      https://issues.apache.org/jira/browse/AMQ-3785. The issue is marked as resolved but I am still getting that error using 5.7 snapshot Jars.

      I'll attach a zip file containing very simple code and test case.

      Attachments

        1. ActiveMQFailoverTest.zip
          3.57 MB
          Bryce Prescott

        Activity

          People

            gtully Gary Tully
            bryce Bryce Prescott
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: