# Connecting to festo PLC with node-red-contrib-opcua

**URL:** <https://discourse.nodered.org/t/connecting-to-festo-plc-with-node-red-contrib-opcua/51336>\
**Category:** Industrial\
**Created:** [21 September 2021 12:24 UTC](https://discourse.nodered.org/t/connecting-to-festo-plc-with-node-red-contrib-opcua/51336 "2021-09-21T12:24:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MartinJensen37](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/martinjensen37/32/48399_2.png) [@MartinJensen37](https://discourse.nodered.org/u/MartinJensen37)\
**Post date:** [21 September 2021 12:24 UTC](https://discourse.nodered.org/t/connecting-to-festo-plc-with-node-red-contrib-opcua/51336/1 "2021-09-21T12:24:14Z")

</div>

Hello there!

I having some trouble connecting to a PLC using the OPCUA client from node-red-contrib-opcua. The issue is that when I try to connect without a certificate I get the following error:

```auto
Invalid endpoint Error: Invalid lockfile specified :C:\Users\JK88UY\AppData\Roaming\node-red-opcua-nodejs\Config\PKI\own\certs\client_certificate.pem.lock

```

and

```auto
Invalid endpoint Error: Invalid lockfile specified :C:\Users\JK88UY\AppData\Roaming\node-red-opcua-nodejs\Config\PKI\own\private\private_key.pem

```

This file does not exist nor does the folders own and certs. Do I need to make the folders myself and generate the keys?

br  
Martin

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [20 November 2021 12:25 UTC](https://discourse.nodered.org/t/connecting-to-festo-plc-with-node-red-contrib-opcua/51336/2 "2021-11-20T12:25:09Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
