X-Road OCSP status checks and when message exchange depends on them
OCSP (Online Certificate Status Protocol) is how an X-Road Security Server learns whether an authentication or signing certificate issued through an approved certification authority is still valid. The Security Server stores the responses it fetches and relies on them until they are refreshed, so the fetch interval determines how old a revocation decision can be when a message arrives. If your organization runs Security Servers, you depend on this for every exchange with a peer whose certificate chains to that CA, and an expired or missing status response can stop traffic before anyone notices. Start by listing, for each CA your members trust, which responder answers for it, which Security Servers query it, and what interval your deployment uses. Confirm the exact interval values, refresh behavior and failure behavior against the release in use (7.8.3 is the current release, with 7.7.4 and 7.6.5 also supported) before you set any value in production.
Plan OCSP settings at three points. First, when a new CA is onboarded, because the responder details registered on the Central Server become the source your Security Servers fetch from. The CA registration itself is covered in its own topic, but the OCSP details should be checked as part of that work. Second, at each certificate renewal, when the new certificate needs a valid status response before the old one lapses, so the overlap window should be checked against the fetch interval. Third, in multi-site deployments, where every Security Server node fetches on its own schedule. Nodes that disagree about response freshness can behave differently under the same responder outage. Confirm that the firewall rules at each site allow the OCSP traffic on TCP 5577 that the Security Server installation guide describes for external networks.
The failure behavior is the decision most teams underestimate. When a responder is unreachable, the questions are how long a previously fetched response stays usable, whether exchanges are refused once it expires, and what the Security Server logs or raises as an alert in the meantime. The answers depend on the release and on configuration, so confirm them in the release documentation and then test them. In a staging environment, block the responder for longer than your fetch interval, record which messages succeed, fail or produce warnings, and verify that your monitoring would show an expiring response before members are affected. Repeat the test after every upgrade, because behavior can change between releases and the test is the only way to confirm what your members will experience.
How OCSP responses move between CA, Security Servers and information systems
The diagram starts at the approved CA's OCSP responder, which the member's Security Server queries and stores in a local cache. The member's Security Server then shares OCSP status with peer Security Servers over TCP 5577 from external networks. Inside the member's network, information systems reach the Security Server on TCP 8080 or 8443, and administrators use the admin UI on TCP 4000. Check that TCP 5577 is reachable from peers and that the internal ports are open only to internal networks.
Trust boundary between internal and external networks for OCSP status flow.
Configuration options for OCSP fetch and responder access
This table compares the OCSP settings a team reviews on a Security Server: the fetch interval, the responder URL from the CA profile, network access on TCP 5577, and next update monitoring. Read each row for when it fits and what to confirm in the admin UI or user guide for your release, since 7.6.5, 7.7.4 and 7.8.3 are all supported. The main takeaway is that the responder and network settings decide whether responses can be fetched at all, while the interval and monitoring decide how stale a cached response can become.
| Setting | When it fits | What to confirm |
|---|---|---|
| OCSP fetch interval | Fits when you need responses refreshed on a set cadence and have agreed how old a cached status may be. | The default value and where the interval is set in the admin UI for your release. |
| Responder URL from CA profile | Fits every member, because the URL comes from the approved CA's certificate profile registered on the Central Server. | Whether the URL in the profile matches what the Security Server queries, and whether your release allows changes. |
| TCP 5577 from external networks | Fits when external networks must reach this Security Server for OCSP traffic. | The port list in the installation guide for your release, and firewall rules for each peer network. |
| Outbound path to the CA responder | Fits when the Security Server sits behind a restrictive egress policy. | The responder host and port the CA publishes, confirmed with the CA and your firewall team. |
| Next update monitoring | Fits when operations must see a stale or expiring OCSP response before message exchange is affected. | Which status and next update fields the admin UI or monitoring add-ons expose, and the memory sizing that applies with those add-ons. |
| Unreachable responder behavior | Fits when assessing how a responder outage would affect message exchange. | What the user guide says happens to cached responses and exchange during an outage in your release. |
| Release line | Fits when comparing a current deployment with an older supported one. | Whether menu paths and defaults match 7.6.5, 7.7.4 or 7.8.3, since 7.8.3 is the current release. |
How Security Servers obtain and share OCSP responses
Status checks on a Security Server are made against stored OCSP responses, not against a fresh lookup for each message. The server fetches responses ahead of time for the certificates it needs to judge, including the authentication and signing certificates of the members and Security Servers it exchanges messages with, along with the CA certificates above them. The responder that answers for each certificate is the one listed in the CA details registered on the Central Server. Your first check is therefore that every CA your ecosystem relies on has a responder URL that your Security Server can reach over the outbound network path it uses for fetching. Confirm in the Security Server user guide exactly which certificates are fetched and how the server chooses between responders before you finalize firewall and proxy rules.
Once responses are stored, the Security Server also acts as a source of status for its peers. It accepts OCSP requests on TCP 5577 from external networks, so a peer that needs the status of a certificate the server has already fetched can ask it directly. That makes port 5577 a dependency for other members. Open it only to the networks your ecosystem agreements require, and agree the access pattern with the operator of the Central Server. Check in the user guide which responses are served on this port and whether a peer can receive a stored response after its next update time has passed, because that behavior determines how much a peer depends on your server being current.
The next update time in each OCSP response is the main input to refresh. It marks the point after which the stored copy should no longer be treated as current, so the Security Server must obtain a newer response before then. How often it polls between those points is controlled by the OCSP fetch interval. The default value and the refresh logic are documented in the Security Server user guide, and you should read them for your installed version rather than assume values from another deployment. Compare the fetch interval with the next update times your responders return, and set an alert for any certificate whose stored response is close to its next update time or has passed it. Test this in staging by making a responder unreachable and recording how long the server keeps reporting status and when the failure appears in the logs.
Setting up OCSP checks on a Security Server
This sequence prepares a Security Server to fetch and hold OCSP responses for the certificates it relies on, on the interval your environment requires. Each step closes with a check you can repeat, from confirming the CA and responder through to a successful next update check. Complete it in a test environment before making the same changes in production.
Confirm the CA and responder details
The Central Server operator and the member's security officer confirm that the certification authority is approved in the X-Road ecosystem and that its OCSP responder details are recorded with it. In the Security Server admin UI, check that the CA appears among approved certification authorities with an OCSP responder address. Then run a basic connection test from the Security Server host to the responder address to confirm that the name resolves and the responder answers. The step is done when the CA and its responder are both visible in the admin UI and reachable from the host.
Check platform and database prerequisites
The platform team confirms the host meets the Security Server requirements before any OCSP configuration begins. Supported systems are Ubuntu Server 22.04 and 24.04 LTS on x86-64, and Red Hat Enterprise Linux 8 and 9. The host needs at least 3 GB of RAM (4 GB with monitoring add-ons) and 3 GB of free disk space, which you can confirm with
uname -m,free -handdf -h. PostgreSQL must be reachable, whether local or remote, including managed services such as AWS RDS or Azure Database for PostgreSQL. The step is done when the host checks pass and a PostgreSQL client connects from the Security Server host.Open TCP 5577 for external OCSP requests
The network team opens inbound TCP 5577 on the Security Server for OCSP requests from the external networks that need certificate status from this server. Keep TCP 5500 for message exchange, and limit the admin UI on TCP 4000 and information system access on 8080 or 8443 to internal networks. Confirm that the host is listening on port 5577 with
ss -ltn. From an approved external test host, a connection to port 5577 should succeed, and a connection from a network you did not approve should fail. The step is done when both tests return the expected result.Set the fetch interval for the environment
The operator sets the OCSP fetch interval for the environment, using the value your team agreed for that environment in writing before the work started. Record test and production values separately so that test settings stay out of production. Confirm in the Security Server user guide for your release where the interval is set and which values it accepts. The step is done when the saved value reads back correctly in the admin UI after a reload and the change is recorded in your change ticket.
Verify that OCSP responses are fetched
Confirm that the Security Server has started fetching OCSP responses for the certificates in scope. Check the certificate status entries in the admin UI for the approved CA, and review the Security Server logs for fetch activity during the first cycle. A successful fetch shows a response status and a next update time for each certificate in scope. If the status stays empty or shows an error, check the responder address, the TCP 5577 rule and the database connection from the earlier steps before changing anything else. The step is done when every certificate in scope has a fetched response.
Verify that next update checks succeed
Wait for at least one full fetch interval after the first fetch, then confirm that the next update time moved forward and that no fetch errors were logged. Run a test message exchange between two members whose certificates depend on this CA, and confirm that it completes without OCSP-related errors. Record the expected behavior for an unreachable responder in your runbook now, so you can test it during a planned outage later. The step is done when the next update time advances on schedule and the test exchange succeeds.
What happens to message exchange when an OCSP responder is unreachable
A short outage is an interruption that the responder recovers from before anyone has to act on it. Your first task is to find out where the problem sits: on the responder, on the network path between the responder and your Security Server, or on the Security Server itself. Separate those three before you change any configuration.
- Responder reachability: Test the OCSP URL that the CA publishes from the Security Server host itself, not only from a workstation on your office network.
- Network path: Review firewall and proxy rules between the Security Server and the responder, including outbound rules that a recent change window may have tightened.
- Security Server logs: Review the Security Server logs and monitoring for OCSP fetch errors during the outage, so you can state when the problem started and when it ended.
- Recovery evidence: Confirm that fresh responses are obtained again after the responder returns, and record the timestamps for your incident record.
Before you put a recovery time in any runbook, ask the CA for its published availability target, and check the X-Road releases page for the release notes of your version to see whether OCSP handling is documented there.
The next update time is the point in an OCSP response's validity by which the CA expects a newer response to be available. When an outage runs past that point, the question changes from availability to currency: the status information your Security Server holds may be older than the CA intends it to be. Treat this as a separate case with its own checks, not as a longer version of the short outage.
- Next update value: Record the next update time from the response your Security Server currently holds, and compare it with the current time in UTC.
- Fetch attempts: Check whether the Security Server keeps attempting to obtain responses while the responder is down, and whether those attempts succeed once the responder returns.
- Affected certificates: Identify which peer certificates depend on the responder in question, since the status information that matters is held per certificate and per issuing CA.
- Decision owner: Agree in advance who decides whether exchange continues during the gap, and who contacts the CA and the affected member organizations.
Ask the CA in writing how long it expects a response to stay current and what it recommends when its responder misses its own schedule, then confirm the Security Server behavior for your version in the release notes before you rely on either answer.
An unknown status is not the same as a valid or a revoked status. It means the Security Server does not have a usable status answer for a particular peer certificate. Your job is to establish which peer, which CA and which step is missing before you make any decision about that connection, because the same symptom can come from several different causes.
- Affected peer: Identify the member, the subsystem and the certificate involved, and the CA that issued that certificate.
- Responder registration: Confirm that the OCSP responder details registered for that CA on the Central Server match what the CA publishes today.
- Certificate chain: Check that the chain presented by the peer includes the intermediate and root certificates that the CA's profile expects.
- Port exposure: Confirm that the Security Server accepts OCSP requests on TCP 5577 from external networks, as the installation guide describes, and that your firewall rules allow the traffic your deployment depends on.
Before you change access or disable a peer, confirm with the CA and the Central Server operator how an unknown status is handled in your version, because that decision affects other members who share the same CA.
A planned outage gives you time to prepare, and that time is the main advantage over an unplanned one. Most of the operator's work happens before the window opens and after it closes: confirming the schedule, deciding who communicates what, and verifying that status checking returns to normal afterward. Make these steps part of the change record rather than informal messages.
- Schedule and scope: Obtain the start time, end time and time zone from the CA in writing, and ask whether the outage affects only OCSP or the wider CA service.
- Next update coverage: Ask the CA whether responses issued before the window stay current long enough to cover it, and whether it plans to publish any extended responses.
- Member notice: Tell the affected member organizations and the Central Server operator which peers and services may be affected, and who to contact during the window.
- Post-window verification: After the window, confirm that fresh responses are obtained for each affected CA, and record the time when that was complete.
- Release notes: Read the release notes for your X-Road version for any documented change in OCSP handling that applies during the window.
Keep the CA's written outage notice and any post-incident report with your change record, so that the next planned window starts from confirmed facts.
Security and operational risks in OCSP configuration
These risks sit in the path between a Security Server, its OCSP responder and the people who configure them. Each one can turn a routine setting into a silent failure or an unintended redirect of status checks. Review every card against your network diagram, role assignments and change records before you sign off the configuration.
Scope TCP 5577 to peer networks
The Security Server accepts OCSP requests on TCP 5577 from external networks, so the port is reachable by more parties than the members that need it. Restrict it at the host firewall, cloud security group or perimeter to the networks that fetch OCSP responses from this server. Check by listing the allowed source ranges, then testing from a host outside that list, which should be refused. Keep the list in your change records so each new peer triggers a review.
Security Server installation guideKeep the OCSP path independent
An OCSP path has shared failure domains with the Security Server when both depend on the same host, database, network segment, DNS zone or egress proxy. A single outage then removes the server's ability to answer OCSP requests and its ability to refresh certificate status at the same time. Map every dependency of the responder path and the Security Server, and mark each shared item. Check by taking each shared component down in a test window and recording what message exchange does while it is unavailable.
Limit who can change intervals
Changing the OCSP fetch interval is an administrative setting, so any account that can reach it can alter how often certificate status is refreshed. The Security Server authenticates admin users through PAM, and LDAP groups can be mapped to its five roles through SSSD. Confirm which roles can edit this setting, and review the group mapping whenever directory groups change. Check by signing in as a user from each mapped group and attempting the change, and keep Security Officer duties separate from System Administrator access.
Security Server user guideAlert on fetch failures
A failed OCSP fetch can go unnoticed until a status check fails or a stored response runs past its next update time. Forward Security Server logs that record fetch errors to your central logging platform, and alert on repeated failures for each responder, not only on a full outage. Confirm which log files and messages your installed version uses for fetch errors. Check by blocking one responder in a test environment and verifying that the alert fires before the next update time passes.
Change control for responder URLs
The OCSP responder details registered for each approved CA tell every Security Server where to send status checks. A changed URL made without review can send checks to a service you do not operate, or break checks for every member that depends on it. Treat responder URL edits as controlled changes with a named approver, a written rollback step and confirmation against the CA's published details. Check by comparing the running configuration with the approved change record after every edit.
Questions teams ask before they set up OCSP in X-Road
What drives the cost of setting up OCSP in X-Road?
The main cost drivers are the number of Security Servers in scope, whether they run as a cluster, your database and hosting choices, and how much change control, testing and handover documentation you need. Setup is a one-time cost. Ongoing support, upgrades and continuous testing are separate retainers that recur. Engagements are fixed-scope, so DeployOpen agrees the scope, deliverables and timeline in writing before work starts, and the quote follows from that scope. DeployOpen does not publish a price list. Ask the partner to separate its own labor from your infrastructure costs, such as virtual machines, load balancers, managed PostgreSQL and hardware security modules, and to flag any items that depend on the CA or the Central Server operator.
How long does an OCSP setup take and what sets the length?
The length depends on the scope agreed in writing, so no single duration applies to every member. The biggest factors are the number of Security Servers and environments, whether a cluster or hardware security module is involved, and how quickly the CA and the Central Server operator respond to requests for OCSP responder details or configuration changes. Change windows also matter, because a change to certificate status checking on a production system may wait for an approved slot. Ask for a timeline with milestones, the dependencies it assumes, and a plan for what happens if one of those dependencies slips. A timeline without stated assumptions is incomplete.
What does the member's team need to provide for OCSP setup?
Plan for four groups of dependencies: network, access, contacts and approvals. On the network side, the ports the Security Server accepts from external networks, including TCP 5577 for OCSP, must be open to the networks that need them, as described in the Security Server installation guide. On the access side, you need a PostgreSQL database, administrative access to the host, and admin UI access for the people who approve configuration. On the contact side, you need the CA's technical contact for OCSP responder details and the Central Server operator. For approvals, you need scheduled change windows for restarts and configuration changes. Ask the partner to list each dependency with a named owner before work starts.
Can an internal team set up OCSP in X-Road without outside help?
An internal team can do the work alone if it already operates Linux servers, PostgreSQL and X-Road Security Servers, and if it can schedule change windows and coordinate with the CA itself. The harder parts for a first-time team are the CA and Central Server coordination, reading the OCSP fetch and next update behavior correctly, and planning what happens when an OCSP responder is unreachable and message exchange is affected. An outside partner adds a second review of the configuration and a documented runbook. Either way, decide before go-live who owns OCSP checks, who responds to alerts, and who is called when a responder becomes unreachable.
What should a quote for OCSP setup include?
A useful quote lists the written scope, not only a total. It should name the Security Servers and environments in scope, the configuration work for OCSP responder details and fetch interval settings, the network and database checks, the change windows the work assumes, the testing and retest steps, and the documentation handed over at the end. It should state what is out of scope, such as CA operations or Central Server administration, and mark which items are one-time and which recur under a retainer. Ask for the client dependencies the quote assumes and the effect on scope if those dependencies slip. DeployOpen provides quotes that follow from the written scope.
Does DeployOpen issue certificates or audit evidence for OCSP?
No. DeployOpen does not issue certificates, audit reports, attestations or certifications. X-Road certificates come from the approved certification authority under its own process, and the Central Server is operated by its owner. DeployOpen can prepare the OCSP configuration, the operational controls around it and the evidence, such as configuration records and test results, so your compliance team and independent auditors can review them. Independent auditors and certification bodies produce any attestation. Confirm with your auditor which records they will sample, and confirm with the CA which OCSP responder details it expects.
Limits to confirm in your environment
These six items decide whether OCSP checking behaves the way your design expects. Each has a different owner and a different place to confirm it: the release documentation, the certification authority, the hardware vendor, or your own test environment.
Fetch interval default and range
The OCSP fetch interval sets how old a cached certificate status can be before a Security Server asks the responder again. Confirm the default value and allowed range in the exact release line you will run, since 7.8.3, 7.7.4 and 7.6.5 are the supported versions today. Check the release notes and configuration reference for that version, and record the value your operators will see in the admin interface. Write the interval into your runbook, because it determines how quickly a revoked certificate is noticed.
X-Road releasesMessage exchange failure behavior
Confirm what the Security Server does to message exchange when an OCSP response is missing, expired or cannot be fetched. The exact failure behavior depends on the release, so test it on the version you plan to run and do not reuse a summary written for another one. Include an unreachable responder, an expired response and a revoked certificate in the test plan. Record which messages fail, which are still accepted, and what the operator sees in logs and alerts.
Responder availability promised by the CA
The CA that issues your certificates runs the OCSP responder, so its uptime is a dependency of your data exchange. Ask the CA in writing for the availability it commits to, the support hours for responder incidents, and the notice it gives for planned maintenance. Confirm the responder address in the approved CA configuration and check that your firewall and proxy rules allow the Security Server to reach it. Compare those commitments with the outage your exchanges can tolerate.
RSA or EC key type
Confirm whether your authentication and signing keys are RSA or EC, because the key type determines what your CA must issue and what your hardware tokens must support. Follow the EC key guidance for your release and for the Central Server before you change any key. Some members in the ecosystem may still use RSA, so test status checks for both key types in a non-production environment before you move production keys.
Clustered and load-balanced servers
In a cluster, the question is whether each Security Server fetches status on its own or whether nodes share it, and how far apart their views can drift. Confirm the sharing model for status across nodes in your release, and test what happens when the load balancer sends a request to a node holding an older response. Check that the OCSP port 5577 and the message exchange port 5500 are open between nodes and the peers that reach them.
Installation guideCA and vendor-specific requirements
Some certification authorities and hardware vendors add their own rules for OCSP, such as required response signing, certificate profile constraints or supported request formats. Collect these from the CA's practice documents and the vendor's documentation before the CA is approved on the Central Server. Turn each specific requirement into an acceptance check and record who signed off on it. If a requirement conflicts with the X-Road default, raise it with your operator before go-live.
How DeployOpen scopes and delivers OCSP setup for X-Road
DeployOpen plans, implements, tests and documents OCSP in X-Road for organizations that run their own Security Servers inside their own infrastructure. Each engagement starts from a written scope that names the approved certification authorities, the OCSP responder endpoints, the fetch interval and the failure behavior your team needs to accept. The work is then built, tested and handed over with runbooks your operators can use.
How we scope
- The written scope lists each Security Server, the CAs whose OCSP responders it queries, and the network paths involved.
- Engagements are fixed-scope, so the fetch interval, next update handling and failure behavior are agreed before work starts.
- Ongoing support after go-live is available as a retainer, so OCSP monitoring can continue after handover.
How we build
- Confirm the OCSP responder details registered for each CA match what the Security Servers are configured to query.
- Set the fetch interval and check the next update behavior in a test environment before any production change.
- Verify that TCP 5577 is reachable from the networks that need OCSP responses from your Security Server.
How we hand over
- Documentation covers the expected OCSP response states, the fetch interval settings and the change steps for each Security Server.
- The runbook covers what happens when an OCSP responder is unreachable, the escalation path and how the team restores service.
- Handover includes a walkthrough of the OCSP settings and checks with your operators before sign-off.
How we support
- Retainers can cover OCSP-related changes after go-live, including upgrades to supported releases such as 7.8.3.
- Changes to CA registrations, responder endpoints or fetch settings are tested before they reach production.
- Ask the CA operator to confirm responder availability and their OCSP service commitments in writing.

