Skip to main content
Sep 17, 2021 1:15 PM UTC
Solved

Kepware MQTT Client using SSL/TLS

Hi there,

I have a mosquitto broker on a remote server and I want to connect to it through Kepware server. As far as I understand I need to add the client certificate and key to the Windows Certificate Store. Can you guide me where should I add the certificates? Thankyou!

BSUN_ROAnswer
Sep 21, 2021 9:05 AM UTC

I found the problem. In the Certificate Store -> Feature it was not selected MQTT Client.

5 replies

Sep 17, 2021 1:34 PM UTC

@BSUN_RO 

 

Following article might help.

 

Regards,

Sachin Sharma

BSUN_ROAuthor
Sep 17, 2021 1:39 PM UTC

Hi @SachinSharma , thankyou for you time.

I have followed that tutorial before and I added also the client certificate. I think it is somehow working, though on the server I now get the following error: „SSL routines:ssl3_get_record:wrong version number”.

BSUN_ROAuthor
Sep 20, 2021 10:34 AM UTC

It was an invalid certificate, now I connected an IoT gateway to the server, but a channel MQTT Client doesn't want to connect to connect, it says: 'socket error', 'TCP/TLS connect failure'. Any idea why is that ?

BSUN_ROAuthor
Sep 20, 2021 1:18 PM UTC

In kepware I get 'socket error', 'TCP/TLS connect failure' but in mosquitto I get 'Client <unknown> disconnected: Protocol error.'

BSUN_ROAuthorAnswer
Sep 21, 2021 9:05 AM UTC

I found the problem. In the Certificate Store -> Feature it was not selected MQTT Client.