-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Connection to mosquitto using tls1.3 with only ca.crt #1150
Comments
I'm also trying to connect to the free emqx broker (https://www.emqx.io/mqtt/public-mqtt5-broker), but I cannot connect using TLS. Even if I download the certificate and add it to the TLSBuilder, it doesn't work. Here is the code I am using:
Other applications work the added certificate or with the open CA server signed certificate. There are the only errors I get: 5/19/2021 3:19:02 PM 32060031: Start client... |
Here's a simple example may help you as a reference: https://github.com/emqx/MQTT-Client-Examples/blob/master/mqtt-client-Csharp-MqttNet/mqtt-client-Csharp-MqttNet/Program.cs |
I am working on an app which is to connect to a mosquitto broker using tls1.3. I will only get a ca.crt from the broker and no client certificates will be used.
My 1st question is am I doing it in a correct way (code below) as I could not find any example of connection using only a ca.crt.
My 2nd question is, When I use below code and configuration I keep getting the following exception:
"The client and server cannot communicate, because they do not possess a common algorithm". The exception does not change when I downgrade to tls1.2. Also, when I try to connect using a python app it works like a charm.
I am using .NetFramework 4.6.2,
mosquitto.conf
I am creating the client in the following way:
The text was updated successfully, but these errors were encountered: