Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
5.18.1
-
None
-
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.