Openremote as EMQX client

Hi there,
I am new to openremote and don’t have alot of background on software development. My background is Electronics and IoT. I want to connect my IoT devices to Openremote dashboard.
I am having problems getting openremote to connect to emqx broker. I want to connect to EMQX broker through MQTT over TLS/SSL port as listed on EMQX dashboard.

MQTT over TLS/SSL Port: 8883
WebSocket over TLS/SSL Port: 8084

Here is the EMQX asset configuration on openremote.


When i view the asset, i get Agent status : ERROR Checking the logs

Connection failed uri=mqtts://t2c8***.ala.eu-central-1.emqxsl.com:8883/?clientId=dairysight001, error=java.net.UnknownHostException: t2c8***.ala.eu-central-1.emqxsl.com: Name or service not known

Is there a different approach or what can i be doing wrong?

Hey @vinn ,

It’s not visible on the screenshot, but make sure that you enable secure mode if you’re trying to connect to an MQTT broker with SSL.

Secure mode is already enabled. Does secure mode refer to SSL certificate or broker authentification, considering that there is a field defined as Certificate alias and an optional Username and Password field?

Hey @vinn,

Secure mode indicates that the broker requires either an SSL connection. This could also entail an mTLS connection.

So you could have an SSL connection (like you do), or a mutual TLS connection (you don’t need that, since you are using username and password credentials). So no need to set a certificate alias (as long as the server certificate is not a self-signed one).

Make sure that you have updated the actual attribute values by pressing the send button on the right, as this is sometimes overlooked.

Hey @panos
I am still experiencing problems connecting. Ive tried testing the connection on MQTT cool and it works perfectly with the below configuration.


I want to replicate the same on Openremote. If i put all the fields as above, i get an error on logs.

Connection failed uri=mqtts://t2c***.ala.eu-central-1.emqxsl.com:8883/?clientId=test, error=java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
I dont know much about SSL but on EMQX broker offers a downloadable ca-certificate file. I already downloaded the file and installed the certificate but how can i get Openremote to either use SSL mode without manually providing the ca-certificate as mqtt-cool does or how can i use the ca-certificate to provide a secure connection?

I ensure all the attributes are updated by pressing the send button and checking the logs to see change so thats not likely the source of the errors.