TLS authentication issues when MessageBroker is connecting to the NATS bus
Affected versions
DataMiner Systems migrated to BrokerGateway-managed NATS.
Cause
An issue can occur with DataMiner MessageBroker not being able to connect to the NATS bus because the Windows SChannel library does not recognize the certificates used by NATS.
Workaround
Copy
C:\ProgramData\Skyline Communications\DataMiner Security\ca.pemand rename the copied file toca.crt.Open the file and install the certificate, setting the install location to the local machine and keeping the default settings.
Keep in mind that this workaround will break again when a DMA is removed from the DMS.
Fix
Install DataMiner 10.5.0 [CU11]/10.6.0.
Description
When DataMiner MessageBroker is used on a DataMiner System that has been migrated to BrokerGateway-managed NATS, it can occur that MessageBroker cannot connect because the certificates are not recognized by Windows.
The following error will be shown in the logs or in the Alarm Console:
DataMinerMessageBroker.API.Exceptions.SessionException: Unable to create connection with endpoints nats://<IP>:4222
---> NATS.Client.NATSConnectionException: TLS Authentication error ---> System.AggregateException: One or more errors occurred.
---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.
---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host