Troubleshooting
Why OPC UA certificate trust fails between an S7-1200 and a panel
Short answer
OPC UA trust is directional: the S7-1200 server must trust the panel's client certificate, and the panel must trust the CPU's server certificate, and neither the no-certificate run nor the UA Expert session exercised either panel trust entry. Export the panel's client certificate from Unified Certificate Manager into the CPU's trust list, import the CPU's server certificate into the panel as trusted, then retest with the same security policy.

On this page
Your three tests have already localized the fault. Communication without certificates proves the endpoint, the user and the tag addressing; a UA Expert session proves the S7-1200 OPC UA server can serve at least one client. Neither test exercises the panel's certificate handling, because OPC UA trust is directional: the CPU must hold the panel's client certificate as trusted, and the panel must hold the CPU's server certificate as trusted. The certificate built with Unified Certificate Manager is one half of that pair. The steps below assume the S7-1200 server at firmware V4.5 and a Unified Comfort Panel client at firmware V19.
What the three tests already prove #
- Server to panel, no certificates. Transport, subnet, endpoint URL, user and addressing are correct for that security setting. No certificate was validated, so nothing here supports the secured case.
- Server to UA Expert. The server accepts a third-party client, and that acceptance lives in UA Expert's own trust store on the engineering laptop. The same server-side behavior appears with CODESYS as an OPC UA client to an S7-1200 server. Both panel trust entries remain untested.
- Server to panel with certificates. The secured session fails. The only open question is which endpoint rejects which certificate.
Record for each test the endpoint URL, the security policy and mode, and the panel's diagnostic text, and change one variable per retest; why each troubleshooting test should prove one cause applies directly here.
Trust runs in both directions #
IEC 62541 makes certificate validation part of session setup: a client must accept the server's application instance certificate before it opens a secured channel, and a server must accept the client's certificate whenever the client presents one under a secured policy. Each endpoint runs the same checks on the peer: is the certificate in my trust store, is it inside its validity window, does its application URI match the application it claims to be, is it revoked. Presence is not trust; an imported certificate still rejects until its status is set to trusted. The direction question is the same one behind trusting a Citect OPC UA client certificate on a B&R PLC. Keep user login out of this: how OPC UA user certificates grant key access rather than application trust explains why adding a user certificate never fixes an application-trust rejection.
Move the panel certificate into the PLC #
- Open Unified Certificate Manager in the panel project and identify the certificate the OPC UA client connection is bound to. Note its subject and application URI.
- Export the public part of that certificate; the private key stays on the panel. For self-signed operation, the documented Unified-panel sequence is to generate the OPC UA client certificate and export its certificate configuration. If your plant uses a root authority, export the root certificate and its revocation list instead and install those on the PLC side.
- In TIA Portal, import the file and add the certificate to the S7-1200's trust list in the CPU's certificate manager, with status set to trusted.
- Confirm the server certificate under
OPC UA > Server > Securityin the CPU's inspector window, then compile and load so the trust list reaches the device.
Move the PLC certificate into the panel #
- In TIA Portal, export the public part of the CPU's OPC UA server certificate, the one selected under
OPC UA > Server > Security. - Import it into the panel's certificate store and set its trust status to trusted in Unified Certificate Manager. An entry that is present but not trusted still rejects.
- In the panel's OPC UA connection, select that client certificate and a security policy the server permits, for example Basic256Sha256 with Sign and encrypt, against the endpoint, for example
opc.tcp://192.168.1.10:4840. - Compile and load the panel runtime, then confirm the loaded certificate set matches what you exchanged.
Match identity, clocks and security policy #
Three settings must agree before trust alone can succeed:
- Application URI. Compare the URI inside each certificate with the application identity configured for that OPC UA application. A mismatch rejects a certificate that is correctly trusted.
- Validity and clocks. Both device clocks must sit inside the certificate's validity window.
- Security policy. The connection's policy and mode must be one the server permits. Hold them constant across retests, or a success proves nothing.
Worked example: the exported server certificate reads valid from 2025-06-01 to 2026-06-01, and the panel rejects it as not yet valid while its clock shows 2025-01-15. 2025 is not a leap year, so the day-of-year of 2025-06-01 is 31 + 28 + 31 + 30 + 31 + 1 = 152. The panel's clock sits at day 15, so it is 152 − 15 = 137 days behind the validity window. Decision: leave both certificates alone, give the panel the correct time of day from the PLC or a time server, confirm the panel clock, and retest. The same failure pattern on the PLC side is covered in the CPU clock and certificate trust checks behind S7-1500 MQTT TLS error 8089.
Verify the secured connection #
- The panel diagnostic reports a session to the endpoint with the security policy you selected and no certificate rejection.
- Both trust stores read trusted: the CPU lists the panel's client certificate, and the panel lists the server certificate.
- Read a known tag and compare it with the PLC's online value.
- If the application writes, run one controlled write on a tag that cannot move the machine, with the machine in a state where a spurious value is harmless.
- Leave the server's unsecured-access option off on the plant network; the no-certificate configuration was a diagnostic step, not the operating mode.
Then read the remaining fault by symptom:
- The panel names the server certificate: fix the panel's trust entry first, then validity and clock.
- The CPU side reports the client rejected: fix the CPU trust list and reload the hardware configuration.
- Both sides show trusted and the session still closes: application URI or security-policy mismatch; align and retest.
- The session is up but values are wrong: that is addressing, not certificates, and your no-certificate run already proved the mapping.
With both self-signed certificates exchanged, trusted, identity-matched and inside their validity windows, this exact pairing connects; if yours does not, one of those four conditions is still open, and the panel diagnostic names which.
Questions asked
Why does UA Expert connect while the panel does not?
UA Expert carries its own client certificate and, at first contact, asks you to accept the server's certificate; that acceptance is stored in the engineering laptop's local trust store, not in the panel. The test proves the server endpoint, user and address space are healthy, while both panel trust entries remain untested.
Do I need a certificate authority for one panel and one PLC?
No. Exchange the two self-signed application certificates and mark each as trusted; that is the documented procedure for a Unified panel as OPC UA client. A certificate authority pays off when several clients must trust the same server or devices are replaced regularly, because you then distribute one root certificate and its revocation list instead of pairwise exchanges.
Can I regenerate the panel's client certificate to clear a rejection?
Only when its application URI or key is genuinely wrong. A regenerated certificate is a new identity: the PLC must import and trust it again, and every other server that trusted the old certificate stops trusting the panel. Import and trust the existing certificate first; regenerate last.
How do I confirm the PLC presents the certificate I exported?
Compare the thumbprints. The certificate the panel rejected and the one exported from the CPU's certificate manager must show the same hash; if they differ, the CPU regenerated its certificate during a download and now presents a different one. Import the certificate the CPU actually presents, then retest.


