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
…
Update-
I’ve now created the .jsk for keystore. Now I’m getting a different error.
2024-11-07 17:04:44,821 ERROR - Not able to start OPC-UA client for server opc.tcp://10.0.0.9:4840/GFUnitServer
com.hivemq.edge.adapters.opcua.util.SslException: Not able to recover key from KeyStore, please check your private-key-password and your keyStorePassword
Following is my keytool verifcation output, which seems to be fine
docker run --rm -v $(pwd):/mnt openjdk:11 keytool -list -keystore /mnt/client-keystore.jks -storepass “yourKeystorePassword” -keypass “yourKeyPassword”
Keystore type: JKS
Keystore provider: SUN
Your keystore contains 1 entry
clientkey, Nov 7, 2024, PrivateKeyEntry,
Certificate fingerprint (SHA-256): 11:DA:21:CD:59:84:D8:09:BB:58:58:E5:A8:1D:09:AC:B7:CC:4C:46:B3:BF:1A:32:81:78:FC:45:7E:AA:7F:B0
Warning:
The JKS keystore uses a proprietary format. It is recommended to migrate to PKCS12 which is an industry standard format using “keytool -importkeystore -srckeystore /mnt/client-keystore.jks -destkeystore /mnt/client-keystore.jks -deststoretype pkcs12”.
And here is my config.xml
I have no name!@a8968f9015e3:/opt/hivemq$ ls
bin client-keystore.jks conf data extensions license log modules README.txt text.txt third-party-licenses
Welcome to the HiveMQ Community! To get started, could you let us know what type of OPC-UA server implementation you’re using?
Additionally, could you provide a screenshot of the OPC-UA server’s endpoint configuration and share the commands you’re using to create the client keystore? This information will help us better assist you.
2024-11-13 12:56:17,584 ERROR - Not able to start OPC-UA client for server opc.tcp://10.0.0.9:4840/GFUnitServer
com.hivemq.edge.adapters.opcua.util.SslException: Not able to recover key from KeyStore, please check your private-key-password and your keyStorePassword