dotnet / dotnet/MQTTnet

mqtt-exception : ssh handshake failed with openssl error - SSL_ERROR_ZERO_RETURN

Open
#1,904 0 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
C#
Stars
5.1k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

HI Team,

I had provisioned MQTT "**eclipse-mosquitto**" docker on AWS+NLB for the MQTT broker and used MQTTnet for the communication to mqtt broker, client services are running in the same AWS region as docker container which is using "**mcr.microsoft.com/dotnet/core/aspnet:3.1-buster-slim**".

Everything is working fine without TLS option, but when I enabled TLS (MQTTS) for the communication getting open SSL error "SSL_ERROR_ZERO_RETUN".

- Network Loadbalancer provides the TLS certificate for the TLS communication between client and loadbalancer but loadbalancer and mqtt broker communication is HTTP only.
- Update FQDN CA certificates into client docker images.
- I have tested MQTT CLI client tool, it was working using TLS.

![mqtt-ssl-error](https://github.com/dotnet/MQTTnet/assets/66482598/5d35212e-4ba0-4605-a79a-3341dac83d1e)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.