πŸ“–
Code and Compile Wiki
E-Learning SchoolYouTubeLinkedIn
  • Code and Compile Wiki
  • 🌎Quick Links
    • πŸ“ƒGitHub
    • πŸ‘©β€πŸ’»LinkedIn
    • πŸ“ΈInstagram
    • πŸ‘¨β€πŸ‘¨β€πŸ‘§β€πŸ‘§Facebook Group
  • 🏒The Company
    • πŸ’₯Vision and Values
    • 😎Meet the Creator!
    • πŸ’ΈDiscount: 20% OFF
  • 🏭Factory Automation
    • Industrial Control
    • Digital Twin
      • FACTORY IO
        • Tasks and Solutions
        • FACTORY IO Scene
      • Simumatik
        • 01: Introduction to Simumatik
        • 02: Conveyor ON-OFF control
        • 03: Conveyor direction control
        • 04: Motor Control with Codesys
        • 05: Electro-Pneumatics with S7-1200 PLC
        • 06: Control IoT Device with MQTT
        • πŸ“šResources
    • PLC
      • Allen Bradley
        • Micro850 PLC
          • PLC Exercises - Part 1
          • PLC Exercises - Part 2
        • Micrologix 1000 PLC
        • Micrologix 1400 PLC
      • Delta Electronics
        • DVP 14SS2
        • DVP 12SE
        • DVP 10SX
        • PLC Exercises 1
      • Omron
      • PLCnext
      • Siemens
        • S7-200
        • S7-1200 (Basic)
          • πŸ“™Course Presentations
          • πŸ“„TIA Projects
        • S7-1200 (Advanced)
          • πŸ“™Course Presentation and Projects
          • πŸ“™HMI Presentations and Projects
      • Codesys
        • Exercises - Part 1
      • WAGO CC100
      • Schneider
        • PLC Exercises
    • Safety Controller
      • Banner SC10 Series
        • 1: Introduction to Safety Controller SC10
        • 2: Interfacing SC10 controller with PC
        • 3: Programming SC10 controller
        • 4: RF door switch safety circuit
        • 5: E-Stop safety circuit
        • 6: E-Stop safety circuit with ext. Reset
        • 7: Indicating fault on Manual reset button
        • 8: Interfacing S7-1200 PLC with SC10
        • 9: Reading virtual Non-safety inputs via PROFINET
        • 10: Bypassing the Magnetic switch via PROFINET
        • 11: Monitoring safety signals on Node-RED Dashboard
        • πŸ“šResources
    • AC Drives
      • Allen Bradley
        • PowerFlex 400
      • Delta Electronics
        • VFD M-Series
        • Servo Drives ASDA-B Series
    • HMI
      • Weintek
      • Delta HMI
      • Siemens KTP400
        • Error 1: Missing Panel images
    • 3D Camera
    • SCADA
      • Ignition SCADA
  • 🌎IIoT
    • Introduction to IIoT
      • Importance of Unified namespace
    • IIoT Devices
      • Arduino
      • ctrlX CORE
        • πŸ“Ή01- Using ctrlX CORE as PLC and Node-RED Server
        • πŸ“Ή02- Using ctrlX CORE as MQTT Broker
        • πŸ“Ή03- Interfacing ctrlX CORE with ctrlX I/O via EtherCAT
        • πŸ“Ή04- Introducing ctrlX CORE IDE App
        • πŸ“Ή05- Connecting OT with IT using Bosch DeviceBridge app
        • πŸ“Ή06- Interfacing ctrlX CORE with IO-Link master using EtherCAT
        • πŸ“Ή07- ctrlX CORE as HMI- Part 1
        • πŸ“Ή08- ctrlX CORE as HMI- Part 2
        • πŸ”—Virtual ctrlX WORKS
      • Raspberry Pi
      • Revolution Pi
      • Weintek cMT-G01
      • Banner Snap Signal
    • IIoT Tools
      • SIGNL4
      • Node-RED
        • Tips
      • OPC UA
        • πŸ–₯️OPC UA Course
        • πŸ’‘Troubleshooting
          • πŸ“ƒCertificate error in Node-RED
      • MySQL
      • MQTT
      • IO-Link
        • SICK
  • πŸ‘¨β€πŸ”¬Resources
    • Yearly Subscription Guideline
    • Based on Courses
    • Books and Guides
    • Computer configuration
    • Hardware and Software
    • πŸ“‘Articles
      • πŸ‘¨β€πŸ’»Modbus Addressing
  • βš™οΈProjects
    • SmartFactory
Powered by GitBook
On this page
  • Error:
  • Solution

Was this helpful?

  1. IIoT
  2. IIoT Tools
  3. OPC UA
  4. Troubleshooting

Certificate error in Node-RED

PreviousTroubleshootingNextMySQL

Last updated 1 year ago

Was this helpful?

Error:

After using the OPC UA Client node in Node-RED, sometimes you might see β€œinvalid endpoint Error” as shown below:

Solution

  • You must generate new private_key.pem using Git Bash terminal

  • Two files will be created in your root folder (C:\Users\>username>): client_selfsigned_cert_2048.pem and private_key.pem

  • In your documents, create a new folder called Self_certificate and move the two pem files into this folder

  • Also place a copy of private_key.pem into following directory: C:\Users<Username>\AppData\Roaming\node-red-opcua-nodejs\Config\PKI\own\private

  • In the edit window of OPC UA client, you must use Local certificate option and provide path for client_selfsigned_cert_2048.pem and private_key.pem files

  • They were both placed in the folder β€˜Self_certificate’ created in Documents folder

    • C:\Users<Username>\OneDrive\Documents\Self_certificate\client_selfsigned_cert_2048.pem

    • C:\Users<Username>\OneDrive\Documents\Self_certificate\private_key.pem

Also, it is a good idea to start a new node-red project with Encryption disabled before using the OPC UA Client node

Install and open terminal. Type this code: openssl req -newkey rsa:2048 -nodes -keyout private_key.pem -x509 -out client_selfsigned_cert_2048.pem

🌎
πŸ’‘
πŸ“ƒ
Git bash