wdcossey / Apache.NMS.ActiveMQ.NetStd

Apache NMS for ActiveMQ Class Library (.Net Messaging Library Implementation): An implementation of the NMS API for ActiveMQ
Apache License 2.0
14 stars 8 forks source link

Error when connecting to ActiveMQ in Docker #2

Closed wdcossey closed 6 years ago

wdcossey commented 6 years ago

There's an issue that affects Docker containers (or any Linux based OS) when connecting to ActiveMQ over TLS.

Seems that the SslSocket do not permit TLS on these systems.

wdcossey commented 6 years ago

I forced SslProtocols.Tls, SslProtocols.Tls11 and SslProtocols.Tls12 when compiling against .Net Standard 2.0.

Update the nuget package (Apache.NMS.ActiveMQ.NetStd) to version 1.7.2.4113 to resolve the issue.

1.7.2.4114 adds SslTransportManager to configure SslProtocols SslTransportManager.AllowedProtocols = SslProtocols.Tls | SslProtocols.Tls11 | SslProtocols.Tls12;