OPC-UA Certificates
When connecting to an OPC-UA server with a security mode other than None, Koios uses X.509 certificates to establish trust. The server verifies Koios's client certificate, and in some cases Koios verifies the server's certificate as well.
Certificates are only required when the Security Mode is set to Sign or Sign & Encrypt. If you're connecting with Security Mode None, no certificate is needed.
Koios manages certificates centrally — you create them once and assign them to any number of OPC-UA devices.
Managing Certificates
The certificate manager is found on the OPC-UA protocol detail page under the Certificates tab. Navigate to Protocols and select OPC-UA to access it.
The certificates table shows all available client certificates with their name, common name, expiry date, the number of devices using each one, and their current status.
Certificate Status
Each certificate shows one or more status badges:
One certificate is always marked as the default (indicated by a star icon). Devices that don't have a specific certificate assigned will use the default certificate automatically.
Generating a Certificate
The simplest way to get started is to let Koios generate a self-signed certificate.
- On the Certificates tab, click Generate
- Enter a Name for the certificate (e.g. "Plant A Certificate")
- Optionally enter a Description
- Optionally enter a Hostname — this is used in the certificate's Common Name and Application URI. If left blank, Koios uses the system hostname
- Click Generate
The new certificate appears in the table immediately and can be assigned to devices. Generated certificates are self-signed — most OPC-UA servers require you to explicitly trust them before they'll accept a secure connection (see Establishing Trust below).
Uploading a Certificate
If you have an existing certificate and private key (e.g. issued by your organization's CA), you can upload them.
- On the Certificates tab, click Upload
- Enter a Name for the certificate
- Optionally enter a Description
- Select the Certificate File — DER or PEM encoded X.509 certificate (
.der,.pem,.crt, or.cer) - Select the Private Key File — PEM encoded private key (
.pemor.key) - Click Upload
Viewing Certificate Details
Click any row in the certificates table to open a detail drawer showing:
- Common Name — the X.509 subject CN
- Organization — the organization field, if present
- Application URI — the OPC-UA application URI embedded in the certificate
- Validity — the "Valid From" and "Valid Until" dates
- Assigned Devices — how many devices are using this certificate
Downloading Certificate Files
If the certificate files exist on disk, the detail drawer shows download buttons:
- Certificate (.der) — the public certificate file, which you may need to import into OPC-UA servers for trust
- Private Key (.pem) — the private key file. Only download this when necessary (e.g. for backup) — anyone with the private key can impersonate Koios to your OPC-UA servers.
Regenerating a Certificate
If a certificate has expired or been compromised, you can regenerate it in place. This creates a new key pair and certificate while keeping the same name and device assignments.
- Open the certificate's detail drawer
- Click Regenerate Certificate
- Confirm the action
Deleting a Certificate
- Open the certificate's detail drawer
- Click Delete Certificate (this button is hidden for the default certificate — the default cannot be deleted)
- Confirm the action
Devices that were assigned to the deleted certificate will fall back to the default certificate.
Assigning Certificates to Devices
Certificates are assigned on each OPC-UA device's Configuration tab.
- Navigate to the device's detail page
- On the Configuration tab, set the Security Mode to Sign or Sign & Encrypt — the certificate selector appears
- Choose a certificate from the Client Certificate dropdown, or leave it blank to use the default
- You can also click the + button next to the dropdown to generate a new certificate without leaving the device page
- Save the configuration
Establishing Trust with OPC-UA Servers
Most OPC-UA servers won't accept a secure connection from an unknown client. After generating or uploading a certificate in Koios, you typically need to:
- Download the Koios client certificate (
.derfile) from the detail drawer - Import it into the OPC-UA server's trusted certificates folder — the exact location depends on the server software
- Restart the OPC-UA server if required (some servers pick up new trusted certificates automatically)
Some servers support an "accept on first connect" workflow where they automatically move rejected certificates to a pending folder. In that case:
- Trigger a connection attempt from Koios — either enable the device or click Test on the device's Configuration tab. The connection will fail with a message like "Certificate rejected by server"
- On the OPC-UA server, find the rejected certificate and move it to the trusted folder
- Koios will automatically connect on the next scan cycle if the device is enabled. If you used the Test button, click Test again to verify
The exact trust process varies by OPC-UA server software (Kepware, Prosys, Unified Automation, Siemens, etc.). Refer to your server's documentation for details on managing trusted client certificates.
