If you’ve deployed an OPC UA server in the past few years, you’ve probably noticed that security is no longer optional, or at least it shouldn’t be. Regulatory frameworks, corporate IT policies, and plain common sense all point in the same direction: industrial communications need to be secured properly.
But OPC UA security can feel intimidating. Certificates, PKI, message policies, token types — these are concepts that belong more in an IT security textbook than a PLC manual. This article breaks it all down in plain language, with enough depth to actually help you configure things correctly.
Why OPC UA security matters now
Older industrial protocols — Modbus, classic OPC DA, and proprietary fieldbuses — were designed for isolated networks. Security wasn’t a consideration because connectivity wasn’t either. That world is gone.
Today, OPC UA sessions routinely cross network segments, connect to cloud platforms, and pass through DMZs. A misconfigured or completely unsecured OPC UA endpoint is an open door. In 2021, a water treatment facility in Florida was accessed via a remote desktop tool, but the attack vector that gets less attention is that many OPC UA servers in similar facilities run with security mode set to None, meaning anyone on the network can read (and sometimes write) process data without authentication.
âš Real-world risk
A 2023 audit of industrial networks by a major cybersecurity firm found that over 40% of discovered OPC UA servers were operating with SecurityMode: None. On flat OT networks, this means any compromised workstation can browse the entire address space.
The good news: OPC UA was designed from day one with security as a first-class feature. The mechanisms are solid. The problem is usually configuration, not the protocol.
The gap most OPC deployments have
Here’s something that often surprises engineers when they first think carefully about it: most OPC servers — including many well-known vendor products — only provide what you might call connection-level security. You can connect, or you can’t. That’s it.
Once a client is connected, it typically has access to everything: read, write, and browse —the full address space. There’s no built-in way to say “this client can read temperature tags but not write to setpoints” or “this application can browse the folder structure but not subscribe to data.” It’s all or nothing.
âš A common misconception
Many organizations believe their OPC systems are secured because they’ve set up certificates and enabled encryption. But encryption only protects the pipe. If every authenticated client still has full read/write/browse access to every node on every server, a single compromised credential can expose your entire process.
This is the security gap in most OPC deployments today — and it’s worth understanding before diving into the technical details of the security model.
The three pillars of the OPC UA security model
OPC UA security is built on three independent but complementary layers. Think of them as three different locks on the same door, you want all three engaged.
Transport security
Protects the channel between client and server. Handled by TLS (for UA over TCP/HTTPS) or the OPC UA Secure Channel protocol.
Application authentication
User authentication
A common misconception is that enabling TLS is “enough.” It isn’t. Transport security protects the pipe, but it doesn’t verify the applications at each end, and it says nothing about whether the logged-in user should be writing to setpoints.
Certificates: your digital handshake
Before an OPC UA client and server exchange a single byte of process data, they perform a mutual authentication using X.509 certificates. If you’ve set up HTTPS on a web server, this concept will be familiar — but there are some important OPC UA-specific nuances.
What is an X.509 certificate?
A certificate is a digitally signed document that binds a public key to an identity. In OPC UA, each application (your server, your client, your historian) has its own certificate that says: “I am application X, running at URI Y, and this is my public key.”
The trust store: the key concept
Every OPC UA application maintains a trust store — a folder (or database) containing the certificates it considers trusted. When a client connects, the server checks: “Is this client’s certificate in my trust store, or signed by a CA I trust?” If not, the connection is rejected.
✓ Practical tip
Most OPC UA servers have a /trusted/certs/ folder and a /rejected/certs/ folder. When a new client connects for the first time, its certificate lands in rejected. You explicitly move it to trusted to allow the connection. This is intentional — it forces manual approval of every new endpoint.
During testing and commissioning, it can be useful to temporarily set the gateway to “trust all new certificates,” then switch to reject-by-default when you’re ready to lock things down for production.
Self-signed vs. CA-signed certificates
Self-signed
CA-signed (PKI)
ℹ Recommendation
For production systems with more than a handful of OPC UA endpoints, invest the time to set up a simple internal PKI. Tools like openssl, step-ca, or even Microsoft ADCS can serve this role. The operational overhead of managing individual self-signed certificates grows fast.
Certificate requirements specific to OPC UA
OPC UA certificates have stricter requirements than typical TLS certificates. Watch out for these:
- TheÂ
Subject Alternative Name (SAN) extension must contain the application URI — this must exactly match theÂApplicationUri in the OPC UA endpoint description. - Key usage must includeÂ
digitalSignature,ÂnonRepudiation,ÂkeyEncipherment, andÂdataEncipherment. - Minimum key size is 2048-bit RSA (many servers now require 4096-bit for new deployments).
Use SHA-256 or better for the signature algorithm. SHA-1 is deprecated in OPC UA security policies.
Message security: signing and encryption
Once the certificates are sorted, you configure the Security Policy and Security Mode for each endpoint. These two settings together determine how messages are protected in transit.
Security mode
There are three options, and the difference matters enormously:
- None: avoid — No security. Messages are plaintext. Certificates are not exchanged. Anyone on the network can read all traffic and impersonate endpoints. Only acceptable in completely air-gapped lab environments.
- Sign: use carefully — Messages are digitally signed to prevent tampering, but not encrypted. An attacker with network access can read the data but cannot modify it without detection. Useful when performance is critical, and confidentiality is less of a concern.
- SignAndEncrypt: recommended — Messages are both signed (integrity) and encrypted (confidentiality). This is the mode you should use for any connection that carries sensitive process data or credentials, or that crosses network boundaries.
Security policy
The security policy defines the specific algorithms used. Current recommended policies (as of OPC UA specification 1.05):
Basic256Sha256
RSA-OAEP with SHA-256 for key exchange, AES-256-CBC for symmetric encryption. The current workhorse policy is widely supported and considered secure.
Aes256Sha256RsaPss
Uses RSA-PSS padding (stronger than PKCS#1). Recommended for new deployments. Requires slightly more capable hardware.
âš Deprecated
Basic128Rsa15 and Basic256 are deprecated and should not be used in new deployments. Many compliance frameworks (IEC 62443, NIST CSF) explicitly flag their use. If your server only offers these, it’s time to update the firmware.
User authentication
Application authentication (certificates) proves which software is connecting. User authentication answers a different question: who is operating this session, and what are they allowed to do?
OPC UA supports four user token types:
Anonymous
No credentials required. Useful for read-only public dashboards. Should never be allowed write access or access to diagnostic data.
Username/password
Classic credential pair. Simple to configure. Make sure you’re using SignAndEncrypt so credentials aren’t transmitted in plaintext.
X.509 certificate
The user authenticates with their own certificate, separate from the application certificate. Strongest option; useful for automated systems and M2M connections.
Roles and access control
User authentication tells the server who you are. Access control, defined in OPC UA via the Role-based access control (RBAC) model introduced in OPC UA 1.04, tells the server what you can do.
Roles are defined on the server and mapped to users or groups. A typical OPC UA server might have roles like:
Observer: Read-only access to all nodes. For dashboards and historians
Operator: Read + write access to specific operational nodes. For control room staff.
Engineer: Full access including configuration nodes. Restricted to qualified personnel.
SecurityAdmin: Manage certificates and user accounts. Should be the most restricted role of all.
✓ Best practice
Avoid the temptation of giving every OPC UA client full administrator access “because it’s easier.” The principle of least privilege applies as much to OT as to IT. A historian who only needs to read data should never have write access.
When your OPC server isn’t enough: the Security Gateway approach
Here’s the uncomfortable truth: even if you configure everything covered so far correctly, most OPC servers still only give you binary connection control, and a client can connect, or it can’t. There’s rarely a built-in mechanism to say “this client can read from Server A but not Server B” or “this user can browse tags but not write to them.”
This is where a dedicated security gateway becomes the right architectural choice. Rather than connecting clients directly to OPC servers, you route all connections through the gateway. The gateway enforces your granular security policy, and the OPC servers behind it don’t need to support these features themselves.
OPC Security Gateway — powered by OPC Expert
The OPC Security Gateway is a purpose-built solution that addresses exactly this gap. It sits between your OPC clients and your OPC servers, enforcing granular access control without requiring any changes to your existing setup or deep cybersecurity expertise.
Unlike standard OPC servers that only offer connection-level security, the OPC Security Gateway lets you restrict read, write, and browse operations independently, per user, per certificate, per endpoint, and even per individual tag, folder, or server.
Multi-protocol
Secures OPC UA, OPC DA, OPC XML DA, MQTT, and REST API from a single gateway
Granular ACL
Certificate control
Trust or reject individual X.509 certs; set default behavior for new connections
User & group auth
Windows accounts, local OPC accounts, or certificate-based, or a combination
Single-port design
All traffic through one firewall-friendly port, no DCOM multi-port headaches
Legacy support
Runs on Windows XP through Windows 11; Server 2003 through 2022
Tunneling & conversion
Bridge OPC DA and OPC UA securely without external converters
Real-time audit log
Every access attempt, failure, and policy change is logged for compliance
It runs as a Windows service, no login required, making it suitable for headless systems and unmanned panels. And because it layers on top of your existing OPC servers, you don’t need to replace anything or reconfigure your PLCs or DCS systems.
A practical example: per-user, per-folder access
Imagine you have three OPC DA servers feeding data to a historian, an operator workstation, and a third-party analytics platform. The historian needs to read everything. The operator needs to read and write to their specific line’s setpoints, without touching other lines. The analytics platform should be able to browse and read, but never write.
With a standard OPC server, implementing this requires either accepting that everyone has full access or building a complex custom middleware layer. With a security gateway, you define per-client rules that enforce exactly this, and the audit log shows you every access attempt so you can spot anomalies.
🔑 How OPC Expert handles this
In OPC Expert’s security configuration, you can right-click any folder, server, or tag node and assign security rules to it. A user account (Windows, local OPC, or certificate-based) can be explicitly allowed or denied read, write, and browse at each level of the address space hierarchy. The deny-by-default mode means new clients get no access until explicitly granted — the safest posture for production deployments.
Practical setup checklist
Use this as a starting point when deploying or auditing an OPC UA installation:
- Every endpoint usesÂ
SignAndEncrypt withÂBasic256Sha256 or stronger. SecurityMode: None endpoint is disabled, or restricted to localhost only.
All application certificates use SHA-256, minimum 2048-bit RSA keys.
Certificate SANs match the application URIs exactly.
Trust stores are configured, no certificate is trusted by default without explicit approval.
Certificate expiration dates are tracked. Set a calendar reminder 60 days before expiry.
Anonymous access is disabled or limited to read-only, non-sensitive data.
Named user accounts follow the principle of least privilege, read, write, and browse permissions assigned separately per role.
If your OPC server doesn’t support granular access control, a security gateway is in place to enforce it.
Audit logging is enabled, all connection attempts, failures, and policy changes are captured.
Firewall rules restrict OPC UA port (default: 4840) to known client IPs only.
Private keys are stored with restricted file permissions, not world-readable.
Common mistakes to avoid
Leaving the “None” endpoint active in production
Many OPC UA servers ship with a SecurityMode: None endpoint active by default — because it makes initial setup easier. The problem is that this endpoint often stays active long after deployment. An attacker (or a misconfigured client) can simply connect to the unsecured endpoint instead of the secured one. Disable it, or bind it strictly to 127.0.0.1 if you need it locally for diagnostics.
Assuming “connected = secured”
This is the most dangerous misconception in OPC security. Getting a certificate-authenticated, encrypted session established is step one, but if every authenticated client can read and write everything, the security stops there. Granular access control at the read/write/browse level is where real protection lives. If your OPC server doesn’t offer it natively, a security gateway fills that gap.
Using the same certificate for every application
Some integrators generate a single certificate and reuse it across all their OPC UA clients. This defeats the purpose: if that certificate is ever compromised, every connection is compromised at the same time. Each application instance should have its own certificate.
Ignoring certificate expiration
OPC UA sessions fail silently (or loudly, depending on the client) when a certificate expires. Unlike a web browser that shows a warning page, an industrial client might stop collecting data, and the alarm might not be obvious. Track your certificate expiration dates proactively.
Skipping auditing because “nothing has gone wrong”
A recurring observation in OT security audits is that organizations don’t know their OPC security is misconfigured because they’ve never looked into it. Enabling audit logging and reviewing it periodically is the only reliable way to detect unauthorized access attempts, certificate rejections, or unusual access patterns before they escalate into incidents.
ℹ Further reading
The OPC Foundation publishes a dedicated security guidance document: OPC UA Security Analysis (available at opcfoundation.org). IEC 62443-3-3 is also directly relevant to OPC UA deployments in industrial control systems.
Wrapping up
OPC UA security isn’t magic, and it doesn’t have to be intimidating. The model is logical: certificates prove the identity of applications, security policies protect messages in transit, and user authentication controls what individuals can do once connected.
But the honest takeaway is that the protocol’s built-in security, properly configured, only gets you so far. Most OPC servers still leave a significant gap in granular access control, and that’s the gap a dedicated security gateway is designed to close. Whether you’re securing a single server on a flat plant network or a multi-protocol architecture spanning legacy and modern systems, layering in that additional access control is what turns a “technically secured” OPC deployment into one that’s genuinely hardened.
Start with the basics, enable SignAndEncrypt, keep your certificates valid, disable the unsecured endpoints, and build from there. Your process data and the plant it runs are worth it.