Error: Cannot locate certificate file

#1

Hi guys, new to the forum and I have been able to google some similar topics, but not find a concrete solution.

I am trying to use the IIOT-OPCUA client from the Contrib library, but get this error:

cannot locate certificate file C:\Users\xxx.node-red\node_modules\node-opcua-client\certificates\client_selfsigned_cert_1024.pem

It there a missing package from installing the node? I have the folder but no certificate

Thanks

0 Likes

#2

shouldn’t that be file C:\Users\xxx\.node-red\node_modules\node-opcua-client\certificates\client_selfsigned_cert_1024.pem ???

With less popular contrib nodes it might be worthwhile to open an issue on the nodes github page as hopefully at least the nodes author should know the problem

0 Likes

#3

Am I going blind? I can't see the difference!

0 Likes

#4

to me a selfsigned certificate is something that the user would be providing... - not shipped in a node

0 Likes

#5

Indeed, distributing a private key would be rather a serious security flaw.

0 Likes

#6

(Missing slash after xxx) :sunglasses:

0 Likes

#7

Just heading down to Specsavers!

1 Like

#8

Thanks for your inputs guys, I`m quite new to Node Red so was not aware that the Contrib nodes was less popular. Is there an "official" way to collect data from a OPC UA Server?

0 Likes

#9

The contrib nodes are extremely popular, they provide many of the non-core features of node-red. If you search the node-red flows site should show you all the options for OPC UA and if there are multiple nodes to do the job then you might have to do a bit of research to find the best. Whether anyone here has experience of them is another matter.

0 Likes

#10

Yes - the opcua nodes are very popular with the PLC folk around here. It's just that they are not core, so the core team don't know so much... so you may have to ask around a bit wider. If the docs don't mention certs then I would suggest you contact the author of the node directly so they can be improved.

0 Likes

#11

Thanks alot for your feedbacks, the problem is now solved; turned out to be missing openssl.exe file.

Put that one in the right place, installed again and the certificate was in place!

0 Likes