I have created a Mqtt Mosquitto broker on an ec2 instance and AWS ACM & NLB (Network Load Balancer) is used to manage SSL and the traffic.
The mqtt functionalities are working as expected from mqtt clients.
But the below error log gets thrown always repeatedly.
Client connection from [nlb-ip-address] failed: error:0A000126:SSL routines::unexpected eof while reading.
I would like to know how to configure the NLB to prevent this error or if I am missing something in the mosquitto.conf for this error to occur. Tried several things but still error is been thrown.
Looking forward for an answer. Thank You
mosquitto.conf
listener 8883
per_listener_settings false
cafile /etc/mosquitto/certs/ca.crt
certfile /etc/mosquitto/certs/server.crt
keyfile /etc/mosquitto/certs/server.key
NLB Port Mapping
443 -> 8883