What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags


View all Tags

How can I create self-signed client certificates to securely communicate with OPC UA sensors?

Votes:

0

I want to create and use a self-signed client certificate in my Credentials for OPC UA settings. How can I make my own self-signed client certificate that fulfills the requirements?

certificate certificate-key credentials opc-ua-server prtg

Created on Apr 18, 2024 10:42:01 AM by  Jacqueline Conforti [Paessler Support]

Last change on Apr 19, 2024 1:41:05 PM by  Jacqueline Conforti [Paessler Support]



1 Reply

Accepted Answer

Votes:

0

This article applies as of PRTG 24

Configure PRTG OPC UA sensors to use secure communication channels with self-signed client certificates

Using an OpenSSL certificate with PRTG ensures certain security measures are in place:

  • Encryption of all data during transfer
  • Integrity of the transferred data
  • Prevention of machine-in-the-middle attacks

How to create your own self-signed client certificate

If you want to create a self-signed client certificate to use with your OPC UA credentials in your device or group settings, follow the steps below to download and execute the script that we provide in this article.

How it works

We provide a PowerShell script that creates an opcua folder with the client certificate and client certificate key. You can use the certificate and certificate key in your OPC UA credentials in PRTG. The client certificate and certificate key files are PEM files.

Note: You must run PowerShell as an administrator to run the script successfully.

Step 1. Download the script and save it in your PRTG program directory

1. Download the script: create_client_cert.ps1

2. Save the downloaded script in the \cert folder in your PRTG program directory. The default path of this file is %programfiles(x86)%\PRTG Network Monitor\cert.

Step 2. Execute the script

  1. Open PowerShell with administrator privileges. To do this, right-click the Windows PowerShell application and select Run as Administrator.
  2. Navigate to the \cert folder where you saved the create_client_cert script. For example, use the command: cd "C:\Program Files (x86)\PRTG Network Monitor\cert"
  3. Run the script with the command: .\create_client_cert.ps1
  4. The script prompts you to enter a Private key password. Enter a strong password and record the password somewhere as you will need it again to configure your OPC UA credentials in the PRTG web interface. Click Enter.
  5. Go to the \cert folder in your PRTG program directory. There is an opcua folder that contains two files: opcua_sensor_cert and opcua_sensor_key. These are the self-signed client certificate and certificate key, respectively.

Step 3. Configure your PRTG settings

  1. In the PRTG web interface, navigate to the device or group you want to enter OPC UA credentials for.
  2. In the device or group settings, find the Credentials for OPC UA setting and disable inheritance via the toggle.
    Credentials for OPC UAClick to enlarge.
  3. Select Sign or Sign & Encrypt and the appropriate security policy that you want to use.
  4. In Client Certificate, copy and paste all the contents from opcua_sensor_cert.
  5. In Client Key, copy and paste all the contents from opcua_sensor_key.
  6. In Client Key Password, enter the password you set in Private key password in Step 2.
  7. Save your changes.

You have successfully created a self-signed client certificate and configured PRTG to securely connect with your OPC UA server.

Created on Apr 18, 2024 10:47:25 AM by  Jacqueline Conforti [Paessler Support]

Last change on Apr 23, 2024 12:49:34 PM by  Jacqueline Conforti [Paessler Support]




Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.