HI All
I’ve installed the hivemq-edge container and trying to us OPC-UA adapter. I’m getting error when I start up the adapter as following:
2024-11-07 09:53:23,842 INFO - Starting protocol-adapter ‘Sim172291685’.
2024-11-07 09:53:23,888 WARN - Failed to initialize a channel. Closing: [id: 0xe5ca31a7]
org.eclipse.milo.opcua.stack.core.UaException: no KeyPair configured
…
…
2024-11-07 09:53:23,892 ERROR - Not able to connect and subscribe to OPC-UA server opc.tcp://10.0.0.9:4840/XXXXX
java.util.concurrent.CompletionException: io.netty.channel.StacklessClosedChannelException
…
…
2024-11-07 09:53:23,895 WARN - Protocol-adapter ‘Sim172291685’ could not be started, reason: io.netty.channel.StacklessClosedChannelException
java.util.concurrent.CompletionException: io.netty.channel.StacklessClosedChannelException
…
My conf file looks as following:
<opc-ua-client>
<overrideUri>true</overrideUri>
<subscriptions>
<subscription>
<publishing-interval>1000</publishing-interval>
<qos>0</qos>
<server-queue-size>1</server-queue-size>
<node>ns=4;i=6131:UnitTime</node>
<mqtt-topic>UnitTimeMQTT</mqtt-topic>
</subscription>
</subscriptions>
<uri>opc.tcp://10.0.0.9:4840/XXXX</uri>
<auth>
<basic>
<username>XXXX</username>
<password>XXXX</password>
</basic>
</auth>
<tls>
<enabled>true</enabled>
<keystore>
<path>/home/digital/certstore/client-keystore.pem</path>
<password></password>
<private-key-password>XXXX</private-key-password>
</keystore>
<truststore>
<path></path>
<password></password>
</truststore>
</tls>
<security>
<policy>BASIC256SHA256</policy>
</security>
<id>Sim172291685</id>
</opc-ua-client>
</protocol-adapters>
I’ve created self singed certificate, which are located in mentioned path. I also tried using not keystore info but that also doesn’t work.
I know that the OPCUA server is available and can be access with the credentials provided.
I have no name!@a8968f9015e3:/opt/hivemq$ openssl s_client -connect 10.0.0.9:4840
CONNECTED(00000003)
Any idea?