How to renew X-Road certificates without a service outage
Renewing an authentication or signing certificate without a service outage depends on overlapping validity. The new authentication certificate is registered before it is needed, activated while the old one still works, and the old certificate is removed only after message exchange has moved to the new one. The trigger is usually a certificate on a Security Server that exchanges live messages approaching its expiry date, so the team has to start early enough that the overlap fits inside the validity window of the certificate being replaced. Treat the sequence as a checklist to run in order, and confirm a rollback point before each step.
Teams plan a manual renewal for a few predictable reasons. The most common is an expiry date recorded in the member's certificate inventory. A second is a change of certification authority, where the new certificate must come from an approved CA before the old chain stops being used. A third is a change of key type, such as moving from RSA to EC keys, which replaces the key pair as well as the certificate and needs its own check that the other members' Security Servers accept the new key type. Before planning any of these, confirm which release your Security Servers run. The current release is 7.8.3, with 7.7.4 and 7.6.5 also supported, and the steps you follow may differ between them.
The screen names, the order of actions and the validity rules described here come from the Security Server user guide, and you must check them against the guide for your release before relying on them. Confirm in that document which certificate states allow a new certificate to be registered, how activation is recorded, and when the old certificate can be deleted without affecting exchange. Then run the same sequence on a test Security Server, record the expiry dates of both certificates in your change ticket, and ask the person performing the change to confirm a test exchange after each step, not only at the end.
X-Road certificate renewal approaches and when each one fits
This table compares five renewal paths, including two that pair renewal with automation or a key change. Read each row by asking how many Security Servers serve the member and whether the renewal is combined with another change, since each added change multiplies what can fail. The main takeaway is that a manual overlapping renewal on one server is the simplest path, so keep it unless a clear need points elsewhere.
| Approach | When it fits | What the team carries | Main risk |
|---|---|---|---|
| Manual overlapping renewal on a single Security Server | One server carries the member's exchange and a planned window is available | New key and request, registration of the new authentication certificate, activation, then removal of the old one | The old certificate lapses or is removed before the new one is active, interrupting exchange |
| Manual renewal across a clustered Security Server group | Several nodes serve the same member behind a load balancer | The same steps repeated per node, plus sequencing so at least one node keeps serving | Nodes end up on different certificates, so requests fail depending on which node is reached |
| ACME automation after a manual first order, covered in Automating X-Road certificate renewal with ACME | The CA and Central Server support ACME, and the team wants fewer manual renewals | The manual first order, CA and Central Server prerequisites, and monitoring of automatic renewal and notices | Missing CA or Central Server support leaves renewal manual, and the gap may surface only near expiry |
| Renewal combined with a key type change to EC, covered in Moving X-Road to elliptic curve keys | Security Servers are version 7.6 or later and counterparties accept EC keys (confirm first) | New EC key pairs, renewed certificates, and compatibility checks for older servers in the ecosystem | Older servers in the ecosystem may not accept EC keys, so the change can break exchange with some members |
| Renewal combined with HSM-backed keys, covered in Using a hardware security module with X-Road | Keys must sit in a hardware security module accessed through PKCS#11 | Hardware token add-on, device configuration on every node, and changed backup and cluster steps | A node without device access cannot activate its keys, so the change can stall mid-renewal |
The old certificate stays active until the new one is verified
The sequence starts with confirming the expiry date and the certification authority's approval, then generates a new key pair and orders the certificate. The new authentication certificate is registered on the Security Server without being used, so its status can be confirmed before anything depends on it. Activation happens in a planned window, followed by verification against a test service and a live consumer. If verification fails, the team keeps the old certificate active and investigates before trying again. If it passes, the old certificate is deactivated and removed, and the evidence from each step is recorded. Confirm every step, screen and command against the Security Server user guide for the release you run before scheduling the window.
Phases from expiry check to removal of the old certificate, with a rollback branch.
Renewing an authentication certificate step by step
This sequence replaces an authentication certificate on a Security Server while the current certificate stays in service until the new one has passed each check. Every step closes with a check that the operator, the OCSP responder or a test exchange can confirm. The result is a new certificate in use, the old one removed, and dated records of each change.
Inventory certificates and expiry dates
The Security Server administrator lists every authentication certificate on every Security Server in your member instance, with its expiry date, its current status and the key it uses. Include every node in a cluster and any standby server. Record the results in a dated inventory that the change owner reviews and signs off. Menu names and commands come from the X-Road Security Server user guide for the release you run, so confirm them against that guide before you start. The step is done when every server appears in the inventory with an expiry date that the team has checked against its renewal calendar.
Confirm the operator accepts the request
Before you generate anything, ask the X-Road operator to confirm in writing that the issuing certification authority and the Central Server will accept a new authentication certificate request for your member. Ask which certificate profile, identifiers and key types apply to your request, and whether the operator has any ordering or timing constraints. Note the confirmation with its date in the change record. The check is passed when the operator has confirmed that both the issuing authority and the Central Server accept the request. Hold key generation until that confirmation is on file.
Generate the new key pair
Generate a new key pair for the authentication certificate on the Security Server while the current key stays in place. If your organization stores keys in a hardware security module, generate the key on the device through the PKCS#11 setup described for the
xroad-addon-hwtokenspackage, and confirm that the Security Server can see the device before you continue. Record the key label or identifier, the key type and the generation date in the change record. The check is passed when the new key appears in the key list next to the existing key, and the existing key has not been changed or deleted.Obtain the signed certificate
Create a certificate request from the new key and submit it to the issuing certification authority through the channel the operator confirmed in the previous step. Check that the member identifiers and subject in the request match your registration, because a mismatch can delay the later steps. When the signed certificate returns, verify that its subject, issuer, validity dates and public key match the request. The check is passed when you hold the signed certificate, its validity period is confirmed, and the operator agrees that the identifiers are correct.
Register the certificate without activating it
Import the signed certificate into the Security Server and register it so that it is visible in the configuration but not yet used for message exchange. Registration runs through the Central Server, so agree the timing with the operator in advance. Leave the current certificate active throughout this step. The check is passed when the new certificate shows as registered and not active, both on the Security Server and in the operator's view of your member's configuration. If the two views disagree, stop and resolve the difference before you move on.
Check status and OCSP response
Confirm the status of the new certificate on the Security Server, then check that the OCSP responder reports it as good. The OCSP response is the signed statement that tells other servers whether a certificate is valid, so this check tests what the rest of the ecosystem will see. Compare the response time window with the current time to confirm the response is up to date. The check is passed when the status reads as good and the response is current. If the response is anything other than good, stop, return to the operator and do not activate the certificate.
Activate in a planned window and test
Schedule activation for a window agreed with the operator and with the teams that depend on your services, and tell them when it starts and who is on call. Activate the new authentication certificate, then send a test message to a counterpart member that the operator has named. Confirm that the exchange completes and that the message log records it. The check is passed when the test message succeeds, the log shows the exchange and the operator confirms it sees the activated certificate. If the test fails, use the rollback steps in the user guide and record what happened.
Remove the old certificate and keep records
Only after the test has passed and your agreed monitoring period has finished, deactivate and remove the old authentication certificate. Confirm the removal with the operator and check that the new certificate is the only active one on every Security Server in the inventory. Close the change record with dated entries for each step, including the inventory, operator confirmation, key generation, certificate issue, registration, OCSP check, activation, test result and removal. Store these records where your audit team can retrieve them. The step is done when the change record is complete and the operator's view of your certificates matches your own inventory.
Protecting keys and access during the certificate swap
A certificate swap touches the most sensitive parts of a Security Server: the private keys, the accounts that can register and activate certificates, and the backups that hold both. The cards below cover the controls that keep the swap attributable and reversible, and what to check before and after each renewal step.
Separate renewal roles
The Security Server user guide defines Security Officer, Registration Officer and System Administrator as distinct roles. Before the window opens, write down which role registers the new authentication certificate, which role activates it, and which role handles host and service changes. No single account should be able to both register and activate a certificate without a second person seeing the change. Check the split against the user guide for the release you run.
User guideKeep old and new keys apart
During the overlap, both the old and new authentication keys exist on the Security Server, and each must stay tied to the certificate it belongs to. Keep the old key until the new certificate is active and you have confirmed that traffic uses it, then remove it under change control. Where the organization uses an HSM, the private keys can stay on the token through the PKCS#11 hardware token add-on (xroad-addon-hwtokens), which supports RSA and EC keys. Confirm token slots, PIN handling and key labels on a test server first, because a key that cannot be found after activation is likely to break exchange.
Attribute every admin change
The Security Server authenticates admin users through PAM, which can use LDAP via SSSD with LDAP groups mapped to X-Road roles. Map each renewal role to its own group, and disable shared admin logins for the window so that every registration and activation traces to a named person. Test a role change on a non-production server first, and confirm that removing a user from the group also removes their X-Road access. Keep the group membership list as part of the change evidence.
User guideRestore backups with care
A backup taken before the swap still contains the old certificate and its private key, so it is sensitive data and needs the same protection as the live server. The larger risk comes at restore time: a restored expired certificate can return to service without any warning from the restore itself. Before any restore, check the certificate validity dates and confirm which key it matches. Treat restore as an incident step that needs sign-off from the Security Officer, not as a quick fix for a failed activation.
Apply the hardening baseline
The X-Road security hardening guidelines set a baseline that the renewal window should not weaken. They recommend locking an account for 15 minutes after 3 failed logins, passwords of at least 16 characters, and key-only SSH. They also cover the allowed-hostnames setting against host header injection. Verify these settings again after the window closes, and remove any temporary access granted for the work.
Hardening guidelinesKeep registration and activation evidence
An auditor will ask when the new authentication certificate was registered, when it was activated, and who performed each step. Record both timestamps and the operator for each action in the change ticket, and confirm where the Security Server keeps its own record of these events so you can export it before any log rotation. Store copies of this evidence with the change record, outside the server it describes. Ask your compliance team which retention period applies to these records.
What renewing X-Road certificates costs and who should do it
What makes an X-Road certificate renewal cost more or take longer?
The main drivers are how many Security Servers hold the certificate, whether they run as a cluster, and how many parties must coordinate. Each server needs its own activation and verification, so a cluster multiplies the checks. HSM-backed keys add device access, backup and key-handling steps on every node that uses them. Every counterparty that consumes your services or trusts your member identity needs notice and a test, and their response times often set the schedule. Change control adds approvals, change tickets and any freeze windows your organization runs. The release in use also matters, since the supported releases are 7.8.3, 7.7.4 and 7.6.5, and the steps should be confirmed against the release your servers run. Much of the effort sits in planning, rehearsal and coordination. A manual renewal recurs each time a certificate expires, so the first project carries the design work and later renewals should be shorter if the runbook stays current. Ask for a quote that lists each server, key type, counterparty and approval step on its own line.
Can our own team renew X-Road certificates without outside help?
Yes, an internal team can renew X-Road certificates if it holds the admin roles on each Security Server, has a test environment where the change can be rehearsed, and has a written rollback plan. Confirm each step against the Security Server user guide for your release before the change window. The guide defines the roles your team needs, including Security Officer, Registration Officer, Service Administrator and System Administrator. The team also needs named contacts at the certificate authority and at the operator. The first renewal is where teams usually find gaps, such as a role nobody holds or a counterparty nobody informed, so a dry run on a test server is worth the time. In this model, ownership stays with your team, and a partner can be brought in for specific steps only.
How long does an X-Road certificate renewal take?
No duration is supplied for this work, so the answer depends on scope and on the change window you can secure. Start by counting Security Servers, cluster members, HSM-backed keys, counterparties and approval steps, because each one adds sequential work. Ask any provider, including DeployOpen, for a written plan with dated steps: inventory, rehearsal on a test environment, counterparty notice, certificate request and approval, activation, verification from consumers, removal of the old certificate, and a rollback window. The plan should show how long each approval is expected to take and who controls it. Be cautious with any timeline given without that breakdown. Ask whether the window includes a check after activation, because a renewal that looks finished in the admin interface may still fail for a consumer.
What does an X-Road certificate renewal need from our organization?
The client supplies access, people and a maintenance window. Ask the provider to list each item in the written scope:
- System access: admin access to each Security Server, and to the database and HSM where keys are stored
- Role holders: people who hold the Security Officer, Registration Officer and System Administrator roles, available during the change
- Test consumers: at least one client and one service owner who will test after activation
- CA and operator contacts: named people at the certificate authority and the X-Road operator who can act on requests quickly
- A maintenance window: an agreed time with a tested rollback path
Confirm these before the plan is signed, because a missing role holder or contact can push the change into a later window.
When is outside help worth it for X-Road certificate renewal?
Outside help is worth considering in four situations: the first renewal on a cluster, an HSM-backed key, a release whose steps your team cannot confirm, or an outage target with no room for error. Each one raises the chance that a mistake reaches live exchange. DeployOpen plans, implements and documents self-hosted platforms in your own infrastructure, and most engagements are fixed-scope, with the scope agreed in writing before work starts. A useful scope covers the first renewal, a rehearsal on a test environment, the live change with agreed checks, and a runbook your team keeps afterwards. Support retainers are available for later renewals or upgrades if your team wants continued help. A quote follows from the written scope, so describe your servers, keys and counterparties in detail when you ask.
Does the operator have to approve the new X-Road certificate?
Yes, the process includes approval from the certificate authority and from the operator's Central Server before the new certificate becomes active. The certificate authority issues the new certificate, and the Central Server must accept the registration of the new authentication certificate before activation. The old certificate should stay valid during the overlap, so message exchange keeps running while the new one is registered and activated. The old certificate is removed only after the new one is verified from consumers. Ask the operator for the exact approval sequence, the expected turnaround for each approval, and the contact who can act when an approval stalls, because those steps set when the change window can start.
What to confirm about your release and environment before the window
Renewal planning depends on facts that differ between your servers, your issuing authority and the X-Road release calendar. The six checks below cover what to confirm before you choose a window, so the overlap period and cutover steps rest on verified inputs. Confirm each item with the CA operator, the Central Server operator and your own server inventory.
Installed release and support status
Start with an inventory of every Security Server and the exact X-Road release each one runs. The current release is 7.8.3, and 7.7.4 and 7.6.5 are also supported, so any server on an older 7.x release needs its upgrade path checked before you plan the renewal window. Upgrading in the same window as a certificate change adds risk, so schedule the two separately where possible. Record each server's version beside its certificate expiry dates so the window is planned from one list.
Supported releasesKeep renewals off X-Road 8
X-Road 8 Spaceship is available for testing as 8.0.0 Beta 2, and its production release is scheduled for December 2026. A beta is useful for evaluating the new platform, but production renewals should stay on a supported 7.x release. Run the X-Road 8 evaluation as a separate project with its own test environment and migration plan. Keep the renewal on the release your members use today.
X-Road releasesValidity and overlap rules
The issuing CA profile sets how long a new certificate is valid, when it can be requested and how much overlap with the existing certificate the CA allows. The CA profile decides how long the old certificate must stay in place, so these rules set how early you can request the replacement. Ask the CA operator for the profile in writing and check it against the expiry date on each authentication and signing certificate. Do not assume that a profile issued to one member applies to another member.
Request types accepted by the CA
The renewal method you plan has to be accepted by both the certification authority and the Central Server. Confirm whether each accepts the request type your team intends to use, whether a manual request or an automated protocol such as ACME, and any steps the Central Server requires before the new certificate is used. Ask for a test request in a non-production environment before the window. Record the answers so the cutover runbook reflects what the operators actually accept.
Platform and database requirements
Security Servers run on Ubuntu Server 22.04 and 24.04 LTS on x86-64, or on Red Hat Enterprise Linux 8 and 9. Each host needs at least 3 GB RAM and 3 GB free disk space, and 4 GB RAM where monitoring add-ons are installed. PostgreSQL is required, either local or remote, including managed services such as AWS RDS and Azure Database for PostgreSQL. Confirm that each host meets these minimums and that your database setup matches the installation guide for your release before the window.
Installation guideLong-term X-Road 7 maintenance
The 7.8.0 release, from early February 2026, is the last new-feature release of X-Road 7. NIIS intends to keep maintaining X-Road 7 with bug fixes and security patches beyond 2026, but how long that period lasts has not been decided. Plan a long-term upgrade path now, and make sure the renewal process will still work after the 7.x line changes. Ask NIIS and your operator for the current maintenance position before you set a migration date.
NIIS blog postHow single-server and clustered renewals differ
On a single Security Server, the whole renewal runs through one node, so you control every step from order to cleanup. The main risk is timing. The current certificate keeps working until it expires, but the replacement must be registered and activated with enough margin that no exchange falls into a gap, and any delay in the approval path eats into that margin.
- Order the new certificate: Request the replacement while the current certificate is still valid, and label the key and certificate pair so the later steps can refer to it without confusion.
- Register and activate: Register the new authentication certificate with the Central Server, then activate it on the node once the registration is accepted.
- Verify exchange: Send test requests from an information system through the node and confirm the new certificate is the one in use.
- Clean up the old certificate: Remove the superseded certificate only after verification passes and the overlap period has ended.
- Track the window: Record the expiry date and set a target date for each step, so a slow approval shows up as a warning instead of an outage.
Before you start, confirm the expiry date, the approval turnaround with your Central Server operator, and the rollback point you will use if verification fails.
In a clustered Security Server group behind a load balancer, the goal is to keep other nodes serving while one node is renewed. You work through the nodes one at a time, so the group never has every node in a changed state at once. The cluster behavior for certificate registration and activation depends on the release, so the documentation for your version decides which steps apply to the group and which apply to each node.
- Confirm cluster behavior first: Read the documentation for your release to establish how a cluster member's certificate and configuration are handled before you plan the order of work.
- Drain one node: Remove the node from load balancer rotation before changing its certificate, and confirm the remaining nodes carry the traffic.
- Renew in sequence: Complete order, registration, activation and verification on one node before you begin the next.
- Check health between nodes: Confirm each renewed node reports healthy and serves test requests before it returns to rotation.
- Record group-wide steps: Write down which steps the group handles and which each node handles, so the next renewal follows the same pattern.
Before the production change, rehearse the drain, the return to rotation and a failover on a non-production group that matches your release and load balancer settings.
When keys live on a hardware security module, the private keys are generated on the device, so renewal depends on the device and its driver as well as on the Security Server. X-Road reaches the module through PKCS#11 using the xroad-addon-hwtokens package, and the device must support the key type you plan to use. The main risk is that a renewal succeeds on paper but the team cannot recover the keys after a device failure, so backup and recovery must be tested before the change.
- Generate keys on the device: Confirm that the new authentication or signing key is created on the token through PKCS#11, and confirm the package version that your release supports.
- Confirm key types: Check that the device and driver support the RSA or EC key type you intend to use for the new certificate.
- Test backup and recovery: Restore key material to a spare device or test partition and confirm the Security Server can sign and authenticate with the restored keys.
- Protect token access: Confirm how the Security Server authenticates to the token, where that credential is stored, and who can change it.
- Map tokens to nodes: In a clustered setup, confirm whether each node uses its own token or a shared one, because that decides the renewal order and the recovery plan.
Before the renewal, run a full test renewal in a non-production environment with a restored backup, and record the steps and the vendor's recovery requirements for your device.
How DeployOpen plans and supports a certificate renewal
DeployOpen plans each X-Road certificate renewal around the period when the old and new authentication or signing certificates are both valid, so message exchange is designed to continue during the change. The work runs inside your own Security Servers and systems, with the steps agreed in writing before work starts.
How we scope
- The written scope lists each Security Server, its authentication and signing certificates, and the renewal dates to be covered.
- Engagements are fixed-scope, so deliverables and timelines are agreed in writing before any renewal work starts.
- Ongoing certificate support can be added as a retainer if your team wants DeployOpen to handle future renewals.
How we build
- Confirm which Security Server roles and admin accounts will approve, register and activate the new certificate.
- Build the overlap window so the new certificate is issued and in place while the old one remains valid.
- Test message exchange with a representative consumer or producer before removing the old authentication certificate.
How we hand over
- A runbook records each step, the owner, the check that confirms success and the rollback point.
- Your team receives the documented configuration, certificate inventory and a record of each activation step.
- A walkthrough with your operators covers the renewal, the rollback path and the next renewal date.
How we support
- Retainers can cover renewal reviews, upgrades and retesting as X-Road releases and certificate schedules change.
- Renewal work is planned for Security Servers on the supported 7.x releases, currently 7.8.3, 7.7.4 and 7.6.5.
- Confirm with your certification authority and Central Server operator which renewal dates and steps apply to your membership.

