Invalid endpoint message when using Node-Red-contribut-opcua

Hi All,
Trying to use Node-red-contribut-opcua, but I get the invalid endpoint message. both my Twincat and UAExpert connect no problem and also tried the palette opcua/for-node-red and that seems to work fine, so I'm at a bit of a loss, why it doesn't work.
On Debug I get this message about certification:

Blockquote

Error: Certificate file must exist :C:\Users\desousa\AppData\Roaming\node-opcua-default-nodejs\Config\PKI\own\certs\client_certificate.pem

Blockquote

I selected certification none, so I'm not sure why I get this.
Any info would be appreciated.

THank you.
Kind Regards
Luis

Best place to start would be read existing issues and raise a new one if needed:

Hi Luis,

That error usually happens because the node-opcua library expects a certificate file to exist, even if you select None for security. Twincat and UAExpert handle this internally, but node-red-contrib-opcua still tries to reference the default PKI folder.

You can fix it by:

  • Manually creating the missing PKI folder and letting the node generate a self-signed cert on first run, or

  • Switching the security policy to "None" and security mode to "None" in the OPC UA client config, then deleting any existing PKI folder so it regenerates cleanly.

Path for the certs:

vbnet

CopyEdit

C:\Users\<YourUser>\AppData\Roaming\node-opcua-default-nodejs\Config\PKI

Once the certificate files are there, the error should disappear.

1 Like