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

Can not connect ActiveMQ via IPv6 address with SSL

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 5.18.1
    • None
    • Broker
    • None
    • JDK 11.0.2

      ActiveMQ 5.18.1 (I've not try the early version. However, I think they may contains the same problem)

    Description

      The client will throw "Contains non-LDH ASCII characters" exception when connect via IPv6 with SSL. 

      Without SSL(this work well):

      nio://[fe80::6ccd:54aa:f58d:fd59]:61616

      With SSL(this will cause the excepiton):

      nio+ssl://[fe80::6ccd:54aa:f58d:fd59]:61616

       

      I think the issue is caused by javax.net.ssl.SNIHostName can not accept ":" as part of the hostname.  I suggest the class org.apache.activemq.transport.tcp.SslTransport.java should check the format before create SNIHostName. Both IPv4 and IPv6 address should not be set for SNI according to RFC6066.

      Attachments

        Activity

          People

            jbonofre Jean-Baptiste Onofré
            edwinwang888 Edwin Wang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: