Hi Dimitris,
Oddly enough, with the DLL from your link I get the message 'Cannot load SSL Library'. But I could solve my problem this way:
- I'm using the DLL which I was using before. Unfortunately I don't remember from where I downloaded them!
- On the server side the connection was blocked by the broker (VerneMQ), it has been unblocked by the person managing the broker.
- On my side I used the piece of code which you mentioned in your other topic to force the method to TLS1.2, otherwise the connection is not working:
with TIdSSLIOHandlerSocketOpenSSL(TMSMQTTClient.Connection.SSLIOHandler).SSLOptions do
begin
Method := sslvTLSv1_2;
Mode:= sslmClient;
end;
With these changes the connection is finally working.
Thank you!