# OPC UA Learner Series - How to Build a Secure OPC-UA Server for PLCs in Node-RED

**URL:** <https://discourse.nodered.org/t/opc-ua-learner-series-how-to-build-a-secure-opc-ua-server-for-plcs-in-node-red/79955>\
**Category:** Industrial\
**Tags:** opcua\
**Created:** [20 July 2023 08:24 UTC](https://discourse.nodered.org/t/opc-ua-learner-series-how-to-build-a-secure-opc-ua-server-for-plcs-in-node-red/79955 "2023-07-20T08:24:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hisma](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hisma/32/5464_2.png) [@Hisma](https://discourse.nodered.org/u/Hisma)\
**Post date:** [20 July 2023 08:24 UTC](https://discourse.nodered.org/t/opc-ua-learner-series-how-to-build-a-secure-opc-ua-server-for-plcs-in-node-red/79955/1 "2023-07-20T08:24:27Z")

</div>

Hey guys, last week I posted part 1 of a series of OPC UA articles in Node-RED. That article covered some important concepts of OPC UA and how they relate to building your own server in Node-RED. I then walk through an example OPC UA Server flow and show how to successfully deploy it.

> **[How to Deploy a Basic OPC-UA Server in Node-RED - Part 1 • FlowForge](https://flowforge.com/blog/2023/07/how-to-deploy-a-basic-opc-ua-server-in-node-red/)**
>
> Introduction to OPC-UA and how to deploy a Node-RED server flow.

In this second article, I create a more practical example, and show how to build a custom OPC UA Server for an Allen Bradley PLC in Node-RED, including how to encrypt the server connection with SSL to make it production-ready.

> **[How to Build a Secure OPC-UA Server for PLCs in Node-RED • FlowForge](https://flowforge.com/blog/2023/07/how-to-build-a-secure-opc-ua-server-for-plcs-in-node-red/)**
>
> Instructions on Building and Deplying a custom OPC UA Server in Node-RED

I did my best to break everything down into manageable details, so that hopefully even someone with minimal experience can follow it. But ultimately building a custom OPC UA Server does take some effort.

My hope is that this tutorial can teach someone enough concepts to go on and develop their own custom OPC Server applications to suit their specific use-case.

As always, if you have any questions please let me know! Here to help.

note - the full source code is included at the end :).

Let me know if you have any questions!

---

<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:** [18 September 2023 08:25 UTC](https://discourse.nodered.org/t/opc-ua-learner-series-how-to-build-a-secure-opc-ua-server-for-plcs-in-node-red/79955/2 "2023-09-18T08:25:23Z")

</div>

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