Selection guide
Choosing an S7-1500 certificate validity period
Short answer
Choose an S7-1500 certificate validity period of one to two years as a policy range, then fix the exact interval from four inputs: your plant security policy, the services that depend on the certificate, a renewal window that includes reconnection testing, and clock accuracy on both peers. Expired certificates do not break running connections; new connections fail instead, so renew on a planned window.
On this page
Set the validity period of an S7-1500 certificate to between one and two years, then fix the exact number from four inputs: your plant security policy, the services that actually depend on the certificate, a renewal window that includes a tested reconnection, and clock accuracy on both peers. Nothing in the CPU or in TIA Portal forces a value on you — you set the dates yourself when the certificate is created — so the decision belongs to your security policy, not to the tooling. And remember what expiry does: a secure connection that is already established keeps running, so an expired certificate never announces itself on the running line. It announces itself at the next reconnection, when a client is already down and waiting. This article gives the range, a table of the decision inputs, the renewal-window arithmetic, and the decision for each case.
What expiry does and does not do #
An X.509 certificate binds an identity to a public key and carries the validity dates every peer checks against. Expiry ends that window; it does not decrypt anything that already flowed, and it does not expose the private key. On the S7-1500 the documented behavior is forgiving in exactly one direction: a secure connection that is already established stays up after the certificate expires, and the failure lands on the next new connection instead.
That failure has a shape worth recognizing. Everything runs until something cycles its connection — an HMI powered up at shift start, a SCADA server recovering from a network blip, an OPC UA client re-establishing its secure channel — and then authentication fails all at once, on a machine that ran cleanly the minute before.
One safety rule belongs here. If the certificate secures a remote access path into the cell, its protection is in doubt from expiry until renewal is finished; do not bridge the gap by dropping the link to unauthenticated access. Renew, load, and test.
Inventory the certificates before you pick a number #
The interval you choose is only as good as your ability to replace every certificate it covers, so list the certificate-dependent connections first. On an S7-1500 the inventory normally has four lines:
- the CPU's own certificate for each secure service you enabled, typically the OPC UA server and the web server;
- the client certificates of peers that authenticate themselves to the CPU;
- the CA certificates in the CPU's trust list that validate those clients;
- the service each connection feeds, so you know what to test after a renewal.
You create and date the certificates in the CPU's properties under Protection & Security > Certificate manager: click Add in the table of certificates and set the validity dates there. With the global certificate manager enabled you can also reopen a certificate later and move its validity further into the future. Two lines of that inventory have their own walkthroughs on this site: the server side of SCADA reading the PLC over OPC UA is set up in connecting an S7-1500 to SCADA over OPC UA from TIA Portal, and a client certificate also rides on an OPC UA connection opened from PLC code — count both directions when you size the renewal window.
The four inputs that set the interval #
Work the table top to bottom; the first row that sets a hard bound ends the discussion.
| Input | What to verify | How it moves the choice |
|---|---|---|
| Plant security policy | A written maximum or minimum certificate lifetime, and who approves exceptions | A documented maximum wins over every other row; where no policy exists, adopt one year as the default and write the rule down |
| Certificate-dependent services | OPC UA server, web server, secure HMI and engineering connections, and which peers authenticate to the CPU | More services mean more peers to re-test per renewal; if you cannot rehearse them all, take the longer end of the range and automate renewal rather than promise a short lifetime you will miss |
| Renewal window | Measured time to issue the replacement, load it, update peer trust, and test one reconnection | The window has to fit between the renewal trigger and expiry; where plant access is rare, widen the validity or automate — never shrink the testing |
| Clock accuracy | CPU time and every client's time against one common time source | Validation uses each peer's own clock, so peers that disagree about the date judge your dates wrongly; synchronize time before trusting any interval |
Worked example: the renewal-window arithmetic #
Take the default case: a certificate valid for one year, renewed on the 80 percent trigger with a six-week renewal period — the pairing in Siemens' recommended-values guidance for certificate renewal. Convert the year to weeks so the arithmetic stays visible:
- Validity: 1 year = 52 weeks.
- Renewal trigger: 80 percent of the life = 0.8 × 52 weeks = 41.6 weeks after issuance.
- Renewal period: 6 weeks, so the renewal work must finish by 41.6 + 6 = 47.6 weeks.
- Margin before expiry: 52 − 47.6 = 4.4 weeks.
Read that margin as the real constraint. A plant with monthly maintenance reaches the renewal comfortably; a plant that only opens the line at an annual shutdown cannot fit the renewal period inside one visit, so for that plant the default is the wrong interval. Take a two-year certificate aligned to the shutdown dates, or renew during operation with OPC UA GDS Push, which is integrated into the S7-1500 since TIA Portal V17 and renews and manages certificates at runtime. Where a security policy caps validity below what the access rhythm needs, the fix is automated renewal, not a quietly ignored rule.
Clock accuracy decides whether your dates mean anything #
Validation compares the validity dates against the clock of the device doing the validating, so a period you set correctly can still be judged wrongly by a peer whose clock is off. Three symptoms cover most of what you will see:
- A connection that ran cleanly fails at reconnection: the certificate expired between the two events — the expected failure, and the reason the renewal window exists.
- A freshly loaded certificate is rejected before its start: a peer clock is ahead, or the validity start date lies in the future. Compare the dates against the rejecting peer's clock, not against your engineering station.
- Dates look current on both ends and authentication still fails: step past the endpoint certificate to the issuers above it, because an expired intermediate or a trust anchor missing from the peer's list fails the same services.
Wrong CPU time has broken certificate trust on other secure services too; we traced one such case to the CPU clock in S7-1500 MQTT TLS error 8089: check CPU clock and certificate trust. On the OPC UA side the client surfaces the time mismatch as its own status error, and resolving OPC UA NotTimeValid certificate validity period errors walks that exact case. The decision that falls out: put the CPU and its OPC UA clients on one time source, and when a validity error appears, check the peer's clock before you reissue anything.
The decision for each case #
- A written security policy caps certificate lifetime: use the cap as it stands, and take the renewal mechanics from the window row of the table.
- A plant with monthly or better maintenance access: the default stands — a one-year certificate, the renewal trigger at the 80 percent mark, a six-week renewal period — and test one reconnection inside the window before you close it.
- A line reached only at an annual shutdown, or an unmanned cell: a two-year certificate aligned to the shutdown dates, with OPC UA GDS Push renewing the OPC UA certificates at runtime where the CPU supports it. Write the replacement procedure down now; over an interval that long, the knowledge of how to swap a certificate decays faster than the certificate does.
- Every case: renew while the old certificate still works — load the replacement, update the peer trust lists that pin the old one, and prove one new connection end to end before you leave the window. An S7-1200 in the same plant follows the same four inputs; only the certificate-management path differs.
Questions asked
Do existing secure connections break when an S7-1500 certificate expires?
No. A connection that is already established keeps running on the expired certificate, and the CPU takes up the replacement when a connection is closed and rebuilt. That is why the symptom lands at the next reconnection and looks like a peer authentication fault. Check the validity dates on both ends before you begin debugging the client itself.
Where do I set a custom validity period in TIA Portal?
Open the CPU's properties, go to Protection & Security and then Certificate manager, add the certificate there, and set its validity dates in the table. Certificates that TIA Portal generates automatically carry a validity period far in the future, so a hand-set date is the kind that lands during operation. Write the expiry date into the maintenance plan while the certificate is fresh.
What do the renewal numbers look like for a two-year certificate?
A two-year certificate spans 104 weeks. The renewal trigger at 80 percent of the life opens the window at 83.2 weeks, a six-week renewal period ends at 89.2 weeks, and 14.8 weeks remain before expiry. That wider margin is the practical argument for two years on a line you reach only at an annual shutdown, alongside runtime renewal through OPC UA GDS Push where the CPU supports it.
Can an S7-1500 certificate be renewed without stopping the CPU?
For OPC UA certificates, yes: OPC UA GDS Push has been integrated into the S7-1500 since TIA Portal V17 and renews and manages certificates during runtime. Certificates for other services follow the replacement procedure you keep in the certificate manager, so confirm per service which path applies before you promise an outage-free renewal in the maintenance plan.
Does the same validity decision apply to an S7-1200?
The four inputs and the one-to-two-year range are the same; what differs is the management path. Runtime renewal through OPC UA GDS Push inside the controller is documented for the S7-1500, so before scheduling a runtime renewal on an S7-1200, confirm in the documentation for your exact CPU and firmware which certificate functions it supports. Otherwise plan the replacement through the TIA Portal certificate manager in a maintenance window.