# OPC UA Certificate Issue

**URL:** <https://discourse.nodered.org/t/opc-ua-certificate-issue/44300>\
**Category:** General\
**Created:** [16 April 2021 20:58 UTC](https://discourse.nodered.org/t/opc-ua-certificate-issue/44300 "2021-04-16T20:58:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![psalibe](https://avatars.discourse-cdn.com/v4/letter/p/e9c0ed/32.png) [@psalibe](https://discourse.nodered.org/u/psalibe)\
**Post date:** [16 April 2021 20:58 UTC](https://discourse.nodered.org/t/opc-ua-certificate-issue/44300/1 "2021-04-16T20:58:57Z")

</div>

Hello,

I am using the node-red-contrib-opcua nodes and trying to connect the client nodes to my OPC UA server using a certificate. I have generated the certificate on the Siemens software and set it up so that I can access it from UA Expert. But when I try to do it in Node-Red on the OPCUA Client node, it says TypeError: cannot read property 'position' of undefined. This is specifically when I export the certificate and put it in "/home/pi/.config/node-opcua-default-nodejs/PKI/trusted/certs/" and link the .pem file I exported. I have tried every possible combination and it either tells me they dont match up or hangs on connecting. I cannot seem to find anything on google about this either.

---

<div class="post-metadata">

**Author:** ![mikakaraila](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mikakaraila/32/37496_2.png) [@mikakaraila](https://discourse.nodered.org/u/mikakaraila)\
**Post date:** [28 April 2021 04:54 UTC](https://discourse.nodered.org/t/opc-ua-certificate-issue/44300/2 "2021-04-28T04:54:05Z")

</div>

Wrong private\_key used, update to latest, Node-opcua v2.41.0 contains some fixes to certificate manager and I expect this would show verify steps on console.

---

<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:** [27 June 2021 04:54 UTC](https://discourse.nodered.org/t/opc-ua-certificate-issue/44300/3 "2021-06-27T04:54:38Z")

</div>

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