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

ActiveMQSslConnectionFactory: Check for null SSL Keystore and Truststore password

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 5.17.1, 5.18.0
    • JMS client
    • None

    Description

      When you assign a Truststore without a password the method ActiveMQSslConnectionFactory.createTrustManager throws a NullPointer exception in Line 135:

       

      trustedCertStore.load(tsStream, trustStorePassword.toCharArray()); 

       

      Please change the code to:

      char[] password = null;
      if (trustStorePassword != null) {
           password = trustStorePassword.toCharArray();
      }
      trustedCertStore.load(tsStream, password);
        

       

      Attachments

        Activity

          People

            cshannon Christopher L. Shannon
            andreas.gorges Andreas Gorges
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 0.5h
                0.5h