Installing an X-Road Security Server on Ubuntu: when your organization needs it
An organization that joins X-Road as a member needs a Security Server that it runs itself. The Security Server exchanges messages with other members' Security Servers and serves your organization's information systems, so every member's data exchange passes through a server it controls. Ubuntu Server 22.04 and 24.04 LTS on x86-64 are supported platforms, and the Ubuntu route is the one most teams take when they already operate Ubuntu fleets and want the server on the same patching and configuration tooling.
Plan the host before you order it. The installation guide sets a minimum of 3 GB RAM, rising to 4 GB when you add the monitoring add-ons, and 3 GB of free disk space. Those are floors, not sizing advice. Message log growth is the main storage driver over time, so the disk and retention decisions belong in your sizing review, and the database placement (local or remote PostgreSQL) should be settled before installation rather than after. Ask your Security Server vendor or internal platform team to confirm the current minimums against the release you intend to install, since the guide is the authority for them.
This page assumes the 7.x release line. The current release is 7.8.3, and 7.7.4 and 7.6.5 are also supported, so confirm which of these your ecosystem's governing authority expects before you choose a package version. X-Road 8 is available as 8.0.0 Beta 2 for testing and is not a production target for a new member today, so do not build a production server on it. Check the X-Road releases page on the day you start, because the supported list changes with each release.
Which Ubuntu install path fits your environment
This table compares the decisions that shape an Ubuntu Security Server install: OS version, database location, monitoring, hardware security modules and the Docker image. Read each row against your environment to see what changes in the install steps and what to confirm before you start.
| Choice | When it fits | What it changes in the install |
|---|---|---|
| Ubuntu Server 22.04 LTS | Your standard server baseline is 22.04 and your change process already covers it | Confirm the Security Server release you plan to run supports this OS version before you build the host |
| Ubuntu Server 24.04 LTS | You are building a new host and want the newer LTS release on x86-64 | Confirm the release and package set for 24.04 in the install guide before you pin versions |
| Local PostgreSQL on the Security Server | A single-host deployment with modest message volume and no separate database team | The serverconf, messagelog and opmonitor databases run on the same host, so disk and backups share one machine |
| Remote or managed PostgreSQL | You need separate database operations, managed backups or a database shared across hosts | Databases move off the host, so network access, credentials and TLS to the database must be planned before installation |
| Monitoring add-ons | You need operational monitoring data from the Security Server | Memory requirement rises to 4 GB RAM from the 3 GB minimum, so size the host before installing the add-ons |
| Hardware security module add-on (xroad-addon-hwtokens) | Your policy requires signing keys in an HSM accessed through PKCS#11, with RSA or EC keys | Install the add-on package and confirm your HSM vendor's PKCS#11 driver works on the host before key creation |
| Standalone Docker image | Trying X-Road, developing against services or testing integrations before a production registration | Not a production path: it does not replace the Ubuntu package install for a registered member server |
Reference data to collect before you run apt
Before you run any package command on the server, collect the identity and instance details your X-Road governing authority assigns to your organization. The Security Server is registered as a member of a specific X-Road instance, so the instance identifier, your member class and member code, and the subsystem names you intend to publish or consume must be settled first. Changing them later means reconfiguring a server that is already trusted by other members. The operator of the X-Road ecosystem in your country defines the naming rules, the approved certification authorities and any country-specific packages your server needs, and those requirements must be confirmed with that operator before you start. Ask them for the exact package set and repository access, because this guide does not assume a particular national configuration.
Next, record the network plan. The Security Server accepts TCP 5500 for message exchange and TCP 5577 for OCSP from external networks, and it serves the admin UI on TCP 4000 and information system access on TCP 8080 or 8443 from internal networks. Write down which source addresses should reach each port, which internal systems will call the server, and whether the admin UI is reachable only from a management network. Confirm that your firewall team has these rules approved before installation, since the server must be reachable from other members during registration. Also decide whether information systems will use plain HTTP on 8080 or TLS on 8443, because that choice affects the certificates you prepare.
Finally, prepare the database and host services. Obtain the connection details for the PostgreSQL instance that will hold the serverconf, messagelog and opmonitor databases, including host, port, administrative credentials for setup and the application user, and whether the server is local or managed. Confirm that the Ubuntu host has correct forward and reverse DNS entries and that its clock is synchronized with a time source your security team trusts, because message timestamps and certificate validity depend on accurate time. Check that the host meets the supported Ubuntu 22.04 or 24.04 LTS, x86-64 requirements with at least 3 GB RAM, or 4 GB if you plan monitoring add-ons, and 3 GB free disk space.
How to install the Security Server on Ubuntu step by step
This sequence takes a prepared Ubuntu Server from a clean host to a running Security Server with a database, an admin UI and verified network reachability, ready for the registration step that follows. Each step ends with a check so the team knows it can move on.
Confirm the host meets platform requirements
The infrastructure or platform team checks that the server runs Ubuntu Server 22.04 or 24.04 LTS on x86-64, with at least 3 GB of RAM (4 GB if the monitoring add-ons will be installed) and at least 3 GB of free disk space. Confirm the server's hostname, time synchronization and outbound access to the package repository, and check the sizing guidance for the message log before you fix the disk layout. Done when the host reports the expected OS release, memory and free disk, and the clock is synchronized.
Collect reference data before installing
Before touching the server, gather the values the initial setup will ask for: the X-Road instance identifier, the member and governing authority details, the database host and credentials, the planned admin user and the country-specific package set that applies to your jurisdiction. Confirm these with your X-Road governing authority or operator, since they vary by deployment. Done when the team has a written list of every value and who supplied it.
Add the NIIS package repository
The sysadmin adds the NIIS package repository for X-Road to the Ubuntu package manager, imports its signing key and refreshes the package index. Use the repository and key instructions in the installation guide for the release you have chosen, and check that the release line matches the supported versions (7.8.3, 7.7.4 or 7.6.5). Done when the package manager lists the X-Road packages from the NIIS source and the key fingerprint matches the value published in the documentation.
Install the Security Server and country-specific packages
Install the Security Server package together with the country-specific packages required for your jurisdiction, and the hardware token add-on only if you plan to use a hardware security module through PKCS#11. Confirm the package names against the installation guide for your release rather than copying them from older notes. Done when the package manager reports a successful installation and the X-Road services are present on the host.
Configure the PostgreSQL database
The database administrator prepares PostgreSQL for the server, either on the same host or on a remote or managed instance, and creates the databases and roles the Security Server needs for its configuration and message log data. Store the credentials in a managed secret store rather than in shell history or plain configuration files. Done when the Security Server can connect to the database with the intended role from the server itself, and a connection test returns without error.
Run the initial setup and start the services
The operator runs the initial setup procedure described in the installation guide, supplying the database connection, the admin user, and the instance and member identifiers collected earlier. Then start the X-Road services and confirm they are enabled at boot. Keep the initial admin password in a password manager and change it at first login according to your hardening baseline. Done when the setup completes without errors and the services report as running.
Verify the service status and admin UI
Check the service status on the host and review the startup logs for errors or repeated restarts. Then open the admin UI on TCP 4000 from an internal management network and confirm that the login page loads and the admin user can sign in. Do not expose the admin UI to external networks. Done when every service is running, the logs show no startup errors, and the admin UI is reachable only from the intended internal address range.
Check port reachability and review logs
Test from the external side that TCP 5500 for message exchange and TCP 5577 for OCSP are reachable, and from the internal side that the information system ports (8080 or 8443) respond as intended. Confirm that the admin UI port is closed to external networks. Finish with a review of the system and X-Road logs, and install the monitoring add-ons only after the base server is verified. Done when the external scan shows only the intended ports open and the log review finds no unexplained errors.
How the Security Server connects members, your systems and PostgreSQL
The Security Server sits between your information systems and the rest of the X-Road ecosystem. Internal clients reach it on the information system port (8080 or 8443) and administrators use the admin UI on TCP 4000, while the server keeps its configuration and operational data in PostgreSQL, either local or remote. Traffic from other members arrives on TCP 5500 for message exchange and TCP 5577 for OCSP, and the firewall marks the boundary where that external traffic stops. Check that only 5500 and 5577 are open to external networks, and that the database connection stays on the internal side.
Ports and trust boundary of a Security Server and its PostgreSQL database.
Security settings to apply on day one
The X-Road hardening guide sets a baseline for the Security Server host and its admin interface. Apply these settings before the server handles production traffic, then confirm each one on the running system, not only in the configuration files.
Account lockout after failed logins
The hardening guide (version 0.6, 09.01.2025) recommends locking accounts for 15 minutes after 3 failed logins. This limits password guessing against the admin UI and the operating system accounts that reach it. Check the lockout behavior on your PAM configuration with a deliberate failed login from a test account, and confirm that the lockout expires as expected so administrators are not locked out during an incident.
Hardening guideStrong passwords for admin accounts
The guide recommends passwords of at least 16 characters for accounts that administer the Security Server. Store them in a managed password vault, not in runbooks or shared notes. Decide before go-live who holds the break-glass credential and where it is kept, because a Security Server that cannot be administered during an outage is a recovery problem.
Key-only SSH access
Allow key-based SSH only on the Security Server host and disable password authentication in the SSH daemon configuration. Restrict which accounts may log in over SSH, and keep the admin UI reachable only from the internal network on TCP 4000. After changing the SSH settings, test a new session in a second terminal before closing the current one, so a misconfiguration does not lock you out of the host.
Allowed hostnames against header injection
Set the allowed-hostnames option so the Security Server only responds to the host names you intend to serve. Without it, an attacker who can send crafted host headers may influence what the server returns. Confirm the value matches the names your administrators and clients actually use, and recheck it after any change to DNS, load balancers or certificates.
HTTPS for global configuration
From version 7.4, the global configuration can be published over HTTPS, and the hardening guide recommends this. Plan this before the first registration, because the server downloads configuration from its governing authority. Confirm with the operator of your X-Road instance which configuration distribution endpoint they use and that your server trusts the certificate chain it presents.
Separate the five admin roles
The Security Server defines five roles: Security Officer, Registration Officer, Service Administrator, System Administrator and Security Server Observer. Assign each person only the role their job needs, so no single administrator can both change security settings and approve registrations. Admin authentication runs through PAM, and LDAP can be added through SSSD with LDAP groups mapped to these roles, which lets you manage access from your directory.
User guideChoosing the monitoring add-ons and their memory cost
The monitoring add-ons are optional packages that extend a Security Server install with monitoring capability, and the memory minimum rises from 3 GB to 4 GB once they are included. The official installation guide sets the base requirement at 3 GB RAM and 3 GB free disk space on Ubuntu Server 22.04 or 24.04 LTS on x86-64, and states 4 GB when the monitoring add-ons are present. Decide whether you need them before you size the virtual machine, because adding them later on an undersized host can push a running server into memory pressure while the message exchange is live.
Before you install, confirm the exact add-on package names and versions for your release line in the official documentation, since the Security Server installation guide and the release notes are the authoritative sources for what each add-on contains and which version pairs with your Security Server version. Check that the add-on version matches the Security Server package you are installing from the NIIS repository, and record both versions in your build notes. Also confirm whether the add-ons pull in any additional services, ports or database usage that the firewall and PostgreSQL plan must account for.
For capacity planning, treat 4 GB as the floor for the operating system, the Security Server processes and the add-ons, not as headroom for growth. Size the host with spare memory for peak message volume and for the operating system page cache, and monitor memory use during the first weeks of traffic. Message log growth is the main storage driver, so plan disk separately from memory, and ask your sizing review or the X-Road hardware requirements material to confirm how the add-ons change the figures for your expected load.
Limits to confirm before you commit
Several limits in the X-Road release picture affect how long a Security Server installed today will stay supported and which platform it can run on. Confirm each one before you choose a version, a host operating system and a rollout date, because they change the upgrade work you will carry later.
X-Road 7 maintenance period
X-Road 7.8.0 is the last new-feature release of the 7.x line, and NIIS intends to keep maintaining X-Road 7 with bug fixes and security patches beyond 2026. The length of that maintenance period has not been decided. Ask NIIS or your provider for a committed end date in writing, and plan the eventual move to X-Road 8 as a separate budgeted project rather than assuming 7.x will run indefinitely.
- Current release
- 7.8.3
X-Road 8 is still beta
X-Road 8 Spaceship is available for testing as 8.0.0 Beta 2, with the production release scheduled for December 2026. Installing a beta on a production Security Server is not a supported path for this guide. Treat it as a test target only, and confirm the production date and migration path with NIIS before you plan any new system around it.
X-Road releasesSupported Ubuntu and RHEL versions
The Security Server is supported on Ubuntu Server 22.04 and 24.04 LTS on x86-64, and on Red Hat Enterprise Linux 8 and 9. Confirm that your exact point release and CPU architecture appear in the current installation guide before you build the host image. If your organization standardizes on another distribution, the Ubuntu steps in this guide do not carry over, and the RHEL sibling topic covers the differences.
Installation guideCountry-specific package availability
Some packages depend on the national X-Road instance you join, such as the country-specific add-ons and the configuration anchor used by your governing authority. Ask your authority which packages and repository channel it expects, and confirm that they exist for the Ubuntu release and X-Road version you chose. Do not assume the generic repository carries every package your ecosystem needs.
X-Road GitHub repositoryDocker Desktop is for testing only
Docker Desktop can run the containerized Security Server for trying X-Road and developing against services, but it is not a production host. Persistent volumes, an external PostgreSQL database and production networking need a server-grade container runtime. Use Docker Desktop only for proofs of concept, and build any production containers on infrastructure you operate, following the Docker sibling topic.
- Docker Desktop use
- Testing only
Questions buyers ask before installing X-Road on Ubuntu
What does installing an X-Road Security Server on Ubuntu actually cost?
The install itself is mostly labor, plus the infrastructure it runs on. Cost splits into the server or virtual machine, a PostgreSQL database (local or managed), the time to collect reference data and agree the network design, and the time to register the server and fix what registration exposes. Infrastructure is largely one-time, but the database, backups, monitoring add-ons and ongoing patching recur. The biggest cost driver is usually how many environments you need (test, staging, production) and whether the server must sit in a high-availability design. Ask any partner for a quote built from a written scope that lists each environment, the database option, the monitoring add-ons and the handover documents.
How long does an X-Road Security Server installation take?
The package installation on a supported system is a short task, but the calendar is set by everything around it. Duration depends on how quickly you gather the configuration anchor and other reference data, whether the server platform and PostgreSQL are ready, how your firewall and load balancer changes are approved, and how long the governing authority takes to approve the registration. Country-specific packages and monitoring add-ons add steps. Ask for a schedule that separates build time from the approval wait, because the approval wait is outside your team's and any partner's control.
What does our organization need in place before the install starts?
Plan for four things before the first package is installed. First, a Ubuntu Server 22.04 or 24.04 LTS host on x86-64 with at least 3 GB RAM (4 GB with monitoring add-ons) and 3 GB free disk, plus root or sudo access. Second, a PostgreSQL database, local or remote, including managed services such as AWS RDS or Azure Database for PostgreSQL. Third, network rules that allow the Security Server's external ports (TCP 5500 and 5577) and internal admin and information system ports (TCP 4000, 8080 or 8443). Fourth, an agreed plan for certificates from an approved certification authority, which you need before registration. Confirm the exact registration requirements with your governing authority.
Can an internal team install the Security Server without outside help?
Yes, a capable Linux and PostgreSQL team can install the package and get a server running by following the official installation guide. The harder parts are the decisions that are expensive to reverse: database placement, network zoning, how admin users are authenticated, whether hardware security modules are used through PKCS#11, and how logs and backups are protected. If your team has not run a security-sensitive service with a formal hardening baseline before, the risk is in those choices rather than the install commands. A useful test is whether someone on the team can explain the design, sign off the hardening settings and run a restore without consulting documentation.
When should an organization bring in a partner for the installation?
Bring in a partner when the install is tied to a deadline, a multi-server design, a regulated environment or a skills gap. A partner is also useful when you need the server hardened to a written baseline, tested and documented for an assessment. DeployOpen implements, hardens, backs up, documents and supports self-hosted open-source platforms inside your own infrastructure, and most engagements are fixed-scope with scope, deliverables and timelines agreed in writing before work starts. Ask for the scope to name the reference data you will provide, who submits the registration request and what the handover includes.
How does the installation relate to registration and later upgrades?
Installation and registration are separate steps. The install produces a server that is not yet a working member; registration adds the configuration anchor, signing and authentication keys, certificates and an approved request to the governing authority. Plan for the registration effort even though the package install is quick. Upgrades come later and depend on the release you choose: the current release is 7.8.3, with 7.7.4 and 7.6.5 also supported, and 7.8.0 is the last new-feature release of X-Road 7. Choose the target version with an upgrade path in mind, and confirm the maintenance period with NIIS before you commit to a long-lived design.
What should we ask for in a quote for this installation?
Ask for a written scope that lists the Ubuntu version, the number of Security Servers, the database option and its location, whether hardware security modules or monitoring add-ons are included, and the environments covered. Ask which registration steps are in scope, who submits the request, and whether the hardening baseline is applied and verified. Ask what deliverables you receive, such as configuration records, backup and restore notes, and runbooks, and what is excluded, such as ongoing patching or the approval wait. A quote that cannot be traced back to these items is hard to compare.
How DeployOpen scopes and delivers the Ubuntu install
DeployOpen agrees the scope of an X-Road Security Server installation on Ubuntu in writing before any work starts. That written scope fixes which servers are built, which Ubuntu release (22.04 or 24.04 LTS) and which X-Road release line the work targets, whether PostgreSQL is local or remote, whether the monitoring add-ons are included, and what the client receives at the end. Because most engagements are fixed-scope, the quote follows from that document rather than from an hourly estimate. Ask for the scope to list each host, each database, each network zone and each handover artifact, so that the quote and the project plan can be checked line by line against the same list.
The installation runs inside the client's own infrastructure: their cloud accounts, data center or air-gapped network. The client's team typically provides the hosts, the network paths, the DNS and the hardware or cloud controls, while DeployOpen performs the package installation, the initial configuration, the post-installation checks and the documentation. Confirm early which party holds the registration request, the approved certificate authority relationship and the key material, because those dependencies sit outside the installation itself. Also confirm who pays for the external database service, the hardware security module and any change windows on the client side, since those costs are separate from the engagement fee.
Documentation and handover close the engagement. The client should receive the as-built configuration, the list of open ports and their intended sources, the role assignments for admin users, the backup and restore steps, and the post-installation check results. Optional retainers cover ongoing support, version upgrades and continuous testing after the server is live, and are priced separately from the install. Ask whether the handover includes a walk-through for the operations team and whether a retest of hardening settings is part of the fixed scope or a later retainer item.

