Skip to main content
1-Visitor
September 17, 2021
Solved

Kepware MQTT Client using SSL/TLS

  • September 17, 2021
  • 4 replies
  • 4133 views

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!

Best answer by BSUN_RO

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

4 replies

16-Pearl
September 17, 2021

@BSUN_RO 

 

Following article might help.

 

Regards,

Sachin Sharma

BSUN_RO1-VisitorAuthor
1-Visitor
September 17, 2021

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_RO1-VisitorAuthor
1-Visitor
September 20, 2021

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_RO1-VisitorAuthor
1-Visitor
September 20, 2021

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

BSUN_RO1-VisitorAuthorAnswer
1-Visitor
September 21, 2021

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