Installing an X-Road Security Server on Red Hat Enterprise Linux

Installing an X-Road Security Server on RHEL 8 or 9 is supported, but the repository, SELinux, firewall and PostgreSQL steps differ from Ubuntu. This page explains what to prepare, what to verify and when RHEL is the right base.

On this page

Installing an X-Road Security Server on RHEL: when your team already runs Red Hat

If your organization has standardized on Red Hat Enterprise Linux and must join X-Road as a member, you can run the Security Server on it. The X-Road Security Server is supported on RHEL 8 and 9, and the installation differs from Ubuntu mainly in the package repositories, SELinux and firewall handling, and database setup. The core software is the same. X-Road is open-source software published under the MIT license and developed by the Nordic Institute for Interoperability Solutions (NIIS), so your platform team can review the code and the packaging before it reaches production.

Start with the sizing check, because it is the one that fails quietly. The supported minimum is 3 GB of RAM, rising to 4 GB if you plan to run the monitoring add-ons, plus 3 GB of free disk space. Those figures are minimums from the installation guide, not a sizing recommendation. Confirm the disk layout with the message log in mind, since logs grow with traffic, and confirm that your RHEL image meets the supported major version before you request a server build. A RHEL 7 or 10 image is outside the supported list, and an in-place change of major version after installation is not a path to plan around.

Then decide how the Security Server will reach its database and how your existing security baseline will treat it. The server requires PostgreSQL, either local or remote, so your DBA team should agree early whether the serverconf, messagelog and opmonitor databases sit on the host or on a managed or shared PostgreSQL service. Ask your security team to review SELinux policy, firewalld rules and any PAM or SSSD integration before the first install, because these are the areas where a standard RHEL build most often differs from the reference setup. Check the exact package names, repository configuration and any RHEL-specific steps against the X-Road Security Server installation guide for the release you will deploy.

Choosing RHEL or Ubuntu for the Security Server host

If your organization already standardizes on Red Hat Enterprise Linux, the Security Server usually fits best on the same platform. Your subscriptions, support entitlements, hardened base images and vulnerability scanning are already in place, and the Security Server host becomes one more system under a process your auditors have already reviewed. Running X-Road on a different distribution means a second patch stream to track and a second hardening baseline to document.

  • Subscription coverage: Confirm that your Red Hat subscriptions and repositories cover the RHEL 8 or RHEL 9 release you plan to use.
  • Base image lineage: Check whether your approved image already includes the packages and kernel settings the Security Server needs.
  • Vulnerability tooling: Confirm your scanner and patch manager support the RHEL release, including the X-Road packages.
  • Lifecycle alignment: Compare the RHEL minor release cycle with your change calendar so that OS patching and X-Road upgrades can be scheduled together.
  • Support path: Ask who handles OS-level issues, so an X-Road incident does not stall between teams.

Before committing, confirm with the NIIS documentation which package set applies to your country and X-Road version.

How the Security Server host, database and network boundaries fit together

The diagram starts with external members reaching the Security Server on TCP 5500 for message exchange and TCP 5577 for OCSP, through a firewall boundary on the RHEL host. The server then hands off to its PostgreSQL databases, which can run locally or on a remote or managed service. Internal information systems reach the admin UI on TCP 4000 and the service ports on 8080 or 8443 from the internal side. Check that each path is open only where the port table in the installation guide says it should be.

Traffic paths and database options for a RHEL-hosted Security Server.

Where RHEL differs from Ubuntu during installation

Installing the Security Server on RHEL is the same product on a different base, but five areas change the work: packages, SELinux, the firewall, the database and the hardware token add-on. Each one can stall an installation if it is handled as an Ubuntu task with different names.

Package repository and naming

The Ubuntu path uses an apt repository from the NIIS package source, while RHEL uses a yum or dnf repository with its own file layout and package names. Confirm the exact repository definition, package names and the RHEL 8 or RHEL 9 variant against the current installation guide for your target X-Road version, not from memory or from an Ubuntu runbook. Pin the version you intend to run so that a later update does not move the server to an unplanned release.

Installation guide

SELinux policy and contexts

RHEL runs SELinux in enforcing mode by default, and the Security Server's services, file paths and database connections may need policy handling that Ubuntu deployments never see. Decide whether to keep enforcing mode with the vendor-supplied policy or to adjust it, and record that decision for the security review. Check the audit log after first start, because a denied action often looks like a generic service failure. Do not switch SELinux off as the first fix.

Firewalld rules versus Ubuntu defaults

RHEL hosts usually run firewalld with a default zone, so the ports the Security Server needs must be opened in the correct zone for the external and internal interfaces. Message exchange and OCSP are reached from other members, while the admin UI and information system ports are internal. Map each port to its zone from the installation guide and the ports reference before you open anything, and keep the admin port off the external zone.

PostgreSQL source and version on RHEL

The Security Server needs PostgreSQL, local or remote, and on RHEL the server packages come from the distribution's module streams or from the PostgreSQL project repository, which can differ in version. Confirm which PostgreSQL major version the installation guide lists for your X-Road release and RHEL version, then install that version from one source only. Mixing sources is a common cause of failed upgrades later.

Hardware token add-on fit

If the organization keeps signing keys in a hardware security module, the xroad-addon-hwtokens package provides the PKCS#11 driver support for RSA and EC keys. On RHEL, check that the vendor's PKCS#11 library is supported on the RHEL version you run, that its install path is accessible to the Security Server service, and that SELinux allows the service to load it. Ask the HSM vendor and the installation guide for the supported combination before ordering hardware.

Step-by-step RHEL installation sequence with checks

This sequence takes a RHEL 8 or 9 host from hardware check to a Security Server whose admin UI answers and whose database connection works, with a verification check at each step. It is written for the team that will run the server, so every step ends with something it can confirm before moving on.

  1. Confirm the RHEL version and hardware sizing

    The platform engineer confirms the host runs Red Hat Enterprise Linux 8 or 9 on x86-64, with at least 3 GB of RAM (4 GB if monitoring add-ons will be installed) and at least 3 GB of free disk space. Plan extra disk for the message log, which grows with traffic. Check the version with cat /etc/redhat-release, memory with free -g, disk with df -h /var, and architecture with uname -m. The step is done when all four values meet the minimums in the installation guide and the host is registered to a subscription or repository source your organization approves.

  2. Prepare the PostgreSQL database

    The database administrator decides whether PostgreSQL runs on the same host or on a separate server, including a managed service such as AWS RDS or Azure Database for PostgreSQL. Create the databases and roles that the Security Server needs for its configuration, message log and operational monitoring data, and confirm the database version against the installation guide before installing. Set the connection to require TLS where the network path crosses a boundary you do not control. The step is done when a test connection from the Security Server host with the intended role succeeds, for example with psql using the host, port, database and user the server will use.

  3. Configure the NIIS package repository for RHEL

    The system administrator adds the NIIS package repository for RHEL using the instructions in the X-Road installation guide and the release matching the version you intend to run. Confirm the release you choose is in the supported list (7.8.3, 7.7.4 or 7.6.5 at the time of the release page this page is based on) and that you have checked the release notes for upgrade or migration effects. Refresh the package metadata with dnf makecache. The step is done when dnf info shows the Security Server package from the NIIS repository, not from a default RHEL repository, and the version matches your plan.

  4. Install the Security Server packages

    The system administrator installs the Security Server package with dnf, plus the hardware token add-on if the organization will use a PKCS#11 hardware security module, and any monitoring add-ons already approved. Some dependencies on RHEL come from different repositories than on Ubuntu, so review the resolved package list before confirming. Record the installed versions and keep the output with the change record. The step is done when rpm -qa | grep -i xroad lists the expected packages and the installation finishes without dependency errors.

  5. Set SELinux and firewalld for the required ports

    The system administrator checks the SELinux mode with getenforce and, if it is enforcing, keeps it enforcing and adds the policy changes the installed packages require, rather than disabling SELinux. Open TCP 5500 and 5577 for message exchange and OCSP from external networks, and TCP 4000 for the admin UI, 8080 or 8443 for information system access, from internal networks only, using firewall-cmd with zones that match your network design. Confirm the sources for each rule. The step is done when firewall-cmd --list-all shows only the intended ports on the intended zones and ausearch -m avc shows no new denials after the services start in the next step.

  6. Start the services and connect the database

    The system administrator starts the Security Server services and the database connection is initialized using the configuration the installer requests. Watch the service logs with journalctl during startup and confirm the server reaches its running state without errors about database authentication or TLS. The step is done when the services report active, the logs show successful database connections, and no SELinux denials appear for the X-Road processes.

  7. Verify the admin UI and database connectivity

    The system administrator opens the admin UI on TCP 4000 from an internal management workstation that the firewall allows, signs in with a System Administrator account, and reviews the server status pages for database health. Confirm that the admin UI loads over the expected protocol, that the database shows as connected, and that the message exchange port listens on 5500 and OCSP on 5577 as configured. Record the results with the date and the server version. The step is done when the admin UI loads from the internal network, the database checks pass, the listening ports match the firewall rules, and the sign-in and status results are saved in the installation record before the server is registered with the governing authority.

PostgreSQL and access options and when each fits

This table compares three places to run the PostgreSQL databases that a RHEL Security Server depends on: the same host, a separate self-managed server, and a managed service. Read each row against your own database standards and the team that will carry the on-call load. For most regulated teams, the decision turns on who patches and backs up the database and whether the database owner can meet the same controls as the rest of the estate.

OptionWhen it fitsWhat the team operatesWhat to confirm with the database owner
Local PostgreSQL on the Security Server hostSmall or test deployments where one RHEL host is the only place the server runs and the team wants the fewest moving partsPostgreSQL packages, patching, backups, storage and the Security Server together on one hostWhether the host sizing covers database growth alongside the message log and the RHEL support lifecycle
Separate self-managed PostgreSQL serverProduction estates with an existing database platform team that already runs PostgreSQL for other systemsThe database server, its high availability design, backups, major upgrades and network access rulesWhich PostgreSQL version is approved, backup and restore tests, and how the three X-Road databases are separated and secured
Managed service such as AWS RDS or Azure Database for PostgreSQLOrganizations already standardized on a managed provider that accepts the X-Road database requirementsNetwork connectivity, credentials, parameter settings and the Security Server configuration that points to the endpointSupported PostgreSQL versions in the service, provider backup and retention settings, encryption, and whether the service sits in the approved region
Connectivity from the RHEL Security ServerEvery option needs a reliable route from the server to the database port and correct TLS and credential settingsFirewall rules, SELinux network booleans where relevant, and client configuration on the hostPort used by the database, whether TLS is required, and which firewall zone and source addresses the database team will accept
Backup and restore ownershipNeeded for every option because the Security Server configuration and message data must survive a host failureScheduled backups, restore tests and the procedure for rebuilding the Security Server against the databaseWho owns backup jobs, retention periods, and the restore time the business expects for the X-Road databases
Credentials and privilege modelApplies to all options and affects audit findings for database accessDatabase roles for each X-Road database, password storage and rotationWhether the database owner can create dedicated roles per database and where credentials are kept, such as a vault or protected file

Setting up PostgreSQL for the serverconf, messagelog and opmonitor databases

The Security Server keeps its configuration in a serverconf database and writes exchanged messages to a messagelog database and operational metrics to an opmonitor database. PostgreSQL is therefore a hard prerequisite on RHEL 8 or 9, and it must be running and reachable before the Security Server packages are configured. The RHEL-specific work is limited to three tasks: installing a PostgreSQL version that the X-Road installation guide supports, creating the database roles the Security Server connects with, and allowing the Security Server host to reach the database port. Confirm the exact supported PostgreSQL versions in the X-Road Security Server installation guide before you choose a package stream, because the RHEL AppStream module streams offered for PostgreSQL change between minor releases of the operating system.

Install PostgreSQL from the repository your team has approved, which may be the Red Hat repositories, a PostgreSQL Global Development Group repository or a internal mirror of either. Mixing sources on one host is the most common cause of dependency conflicts, so pick one and record it. Create one role for each database, or one shared role if your security policy allows, and give each role a strong, unique password stored in your secrets manager. Grant each role ownership of its own database only, not superuser rights. Then edit pg_hba.conf to allow the Security Server host address, and set listen_addresses in postgresql.conf to the interface that host uses. Restrict the rule to the host's address and to the database and role names, and reload the server. Check the result from the Security Server host with a test connection under each role before you run the X-Road installer, because a failed connection at that stage is harder to diagnose.

Plan for the work that recurs after the first install. The messagelog database grows with message traffic, so decide on its retention and backup approach now, and confirm with your X-Road operator how message log retention is set. Include the PostgreSQL service in your patching and backup schedule, and note which package stream you pinned so that a RHEL minor update does not change the PostgreSQL major version under a running system. Moving these databases to a separate server or a managed service is covered in the sibling page on remote and managed PostgreSQL, so decide here only whether the database stays on the host for this installation.

Security settings to apply on RHEL from the first boot

The X-Road security hardening guidelines (version 0.6, dated 09.01.2025) set a baseline for the Security Server host and its admin interface. Apply these settings before the server holds a configuration anchor or any member keys, because changing them later means revisiting a server that already trusts the network around it.

Admin account lockout

The hardening guidelines recommend locking admin accounts for 15 minutes after 3 failed logins. On RHEL, this is enforced through the PAM stack that the Security Server uses for admin authentication, so confirm the lockout applies to the X-Road admin UI logins and not only to shell logins. Test it with a deliberately failed login on a non-production server and record the result in your build checklist.

Hardening guidelines

Passwords of at least 16 characters

The guidelines recommend passwords of at least 16 characters for accounts on the Security Server. Set the minimum length in the RHEL password quality configuration, and make sure it covers the accounts the Security Server creates during installation as well as the ones your administrators add. If you integrate LDAP later, the directory password policy becomes the one that matters, so align the two.

Key-only SSH

Disable password authentication for SSH and allow only key-based logins for named administrators. Check the effective setting with the SSH daemon's configuration output after every change, because RHEL drop-in files can override the main configuration. Keep at least one tested administrative session open while you change SSH settings, so a mistake does not lock you out of a server that sits behind a firewall.

Allowed hostnames against header injection

The allowed-hostnames setting restricts which host names the Security Server accepts in incoming HTTP host headers, which protects the admin and information system interfaces against host header injection. Define the exact names your administrators and internal systems use, including any load balancer name, and leave no wildcard entries. Confirm the value with the current configuration reference for your release before you rely on it.

HTTPS for global configuration

From version 7.4, the guidelines recommend publishing the global configuration over HTTPS. Plan the certificate and the trust path for the configuration distribution endpoint before first registration, because the Security Server fetches its configuration from that source. Check that your RHEL trust store includes the issuing authority for that certificate, and document the renewal owner so the configuration feed does not expire unnoticed.

PAM and SSSD for admin roles

The Security Server defines five admin roles: Security Officer, Registration Officer, Service Administrator, System Administrator and Security Server Observer. Admin users authenticate through PAM, and SSSD can map LDAP groups to these roles. Keep the group-to-role mapping written down and reviewed, because a directory group with broader rights than intended gives an administrator access that never appears in the server's own user list.

Security Server user guide

Questions teams ask before installing X-Road on RHEL

What does the effort of installing an X-Road Security Server on RHEL depend on?

The effort depends mostly on the environment around the server, not on the package install itself. The main drivers are how many servers you need, whether the PostgreSQL databases are local or remote, how many network paths must be opened, whether hardware security modules are involved, and how many approvals sit between the team and a change window. Confirm the supported RHEL release (8 or 9), the minimum of 3 GB RAM and 3 GB free disk space, and whether monitoring add-ons need 4 GB. Also confirm whether the organization has a registered configuration anchor and approved certification authority ready, because those steps follow installation and often take longer than the install.

Can an in-house team install X-Road on RHEL without a partner?

Yes, an in-house team with Linux administration, PostgreSQL and firewall skills can install the Security Server from the NIIS packages, provided it has time to test and document the result. The work that usually stretches a first installation is SELinux policy adjustments, firewall rules for TCP 5500, 5577, 4000 and 8080 or 8443, PAM and SSSD setup if admin users come from LDAP, and the PKCS#11 configuration if HSMs are used. A partner is most useful when the team has never run X-Road, when deadlines are fixed, or when the same setup must be repeated across several environments. Ask whether your team has done a dry run on a non-production host first.

What does the organization need to provide for an installation project?

A partner needs the same things an internal team needs, granted in writing before work starts. In practice this means:

  • Access to the RHEL hosts, with root or sudo rights during the agreed window, and access to the package repositories or a mirror the hosts can reach
  • Written change approvals for the firewall, DNS and host changes, and a named contact for each approval
  • Reference data for the X-Road instance, including the instance identifier, member class and code, and the agreed hostnames
  • PostgreSQL access, including the host, port, database names and a role able to create the serverconf, messagelog and opmonitor databases, or a decision to run PostgreSQL on the host

Agree in the scope document who holds the keys to the HSM or secrets store, and who signs off the test results.

How long does an X-Road Security Server installation on RHEL take?

The duration depends mainly on approvals, environment readiness and the number of servers, not on the installation command itself. A single server on a prepared host with an open change window can move quickly, while a server that needs firewall changes, a new PostgreSQL instance, and sign-off from security and network teams can take considerably longer. Ask for a written timeline that separates the technical install from the waiting periods for approvals, certificate requests and registration with the governing authority. Your own change calendar is usually the longest dependency, so start those requests before the build begins.

Do RHEL licensing and support costs differ from Ubuntu for X-Road?

X-Road itself is published under the MIT license, so the software cost does not change between Ubuntu and RHEL. The difference lies in the operating system subscription. Red Hat Enterprise Linux is sold under a subscription that covers support, updates and access to Red Hat repositories, while Ubuntu Server is available with optional paid support plans. Whether RHEL adds cost depends on whether your organization already holds enterprise subscriptions, how many hosts you run, and which support level you need. Ask your Red Hat account team and your procurement team to confirm the subscription type, the entitlements that apply to the X-Road hosts, and whether the subscription covers the repositories you plan to use.

Does DeployOpen issue certifications for an X-Road deployment?

No. DeployOpen does not issue audit reports, attestations or certifications. It can plan and build the deployment, harden the RHEL host, document configuration, and prepare the systems, controls and evidence that an independent auditor or certification body will review. Evidence typically includes configuration records, access control settings, logging and change records. Any certificate of conformity or audit opinion must come from the body your sector or regulator recognizes. Ask the certification body early which evidence it expects so the build can produce it.

Which SELinux and firewall settings cause the most trouble on RHEL?

The most common problems are SELinux denials on the non-default ports and file locations used by the Security Server, and firewalld rules that do not match the ports the server listens on. Check the audit log for denials after the first start, and confirm that TCP 5500 and 5577 are open to other members while TCP 4000 and the information system ports stay limited to the internal network. Do not disable SELinux as a shortcut. Instead, record each policy change and test it, so the security team can review it later. Confirm the exact port list and any SELinux requirements against the installation guide for your release before the change window.

Can RHEL migrations from Ubuntu be planned for an existing X-Road server?

Migrating an existing Security Server from Ubuntu to RHEL is a rebuild rather than an in-place change, so plan it as a new host with a controlled cutover. The work covers a fresh RHEL build, PostgreSQL connectivity, restoring configuration and keys from backup, and verifying that the server registers and exchanges messages before the old host is retired. Confirm with the X-Road documentation and your NIIS contact whether the backup and restore steps apply to your release, and keep the old server running until the new one has passed its checks.

When organizations standardized on RHEL should choose it for X-Road

Choose RHEL for the Security Server when your organization already runs Red Hat Enterprise Linux under its patch, hardening and audit standards. In that case the operating standard is the strongest reason, because the Security Server then follows the same change process, build pipeline, vulnerability management and support agreements as every other system you run. The X-Road Security Server is supported on Red Hat Enterprise Linux 8 and 9, so a team on a supported major version does not need a special exception to host it. Before you commit, confirm which RHEL minor release your standard pins and check that your support subscription covers the packages you will install.

The same reasoning applies to SELinux and access policy. If your organization already maintains SELinux policies, file context rules and audit rules for RHEL hosts, the Security Server should be assessed against those policies rather than given a separate exemption. Ask your security team to decide in advance whether SELinux runs in enforcing mode, how the X-Road services and their database connections are labeled, and who approves any policy module you need to add. Plan the same for firewalld, since the inbound ports on the external side (TCP 5500 and 5577) and the internal side (TCP 4000 and 8080 or 8443) should be opened through your existing firewall process, with the change recorded in the same system you use for other servers.

An Ubuntu host is equally supported, and the choice should not rest on a belief that X-Road works better on one distribution. The supported platforms listed for the Security Server include both families, and the functional behavior of the server is the same on either. If your standard is Ubuntu Server 22.04 or 24.04 LTS, or your team has no RHEL operating experience, choose that platform and document why. The decision should follow operating standards, support contracts and the skills your team will use at 2 a.m., not perceived feature gaps. Confirm the exact package set and repository source for your chosen platform with the current installation guide before you start the build.

How DeployOpen scopes and delivers an X-Road Security Server install on RHEL

DeployOpen plans and installs the X-Road Security Server inside your own infrastructure, on RHEL 8 or 9 with PostgreSQL, SELinux and firewall settings designed together with your security team. Engagements are fixed-scope, with the scope, deliverables and timeline agreed in writing before work starts.

How we scope

  • Confirm the RHEL 8 or 9 versions, subscription and repository access your organization already uses for installation.
  • Agree whether PostgreSQL will be local, remote or a managed service, and who owns that database.
  • Record the ports to open from external and internal networks, and which teams approve each firewall change.

How we build

  • Prepare the host against the RHEL requirements for memory and free disk space, then install the Security Server packages.
  • Configure SELinux and firewall rules to match the agreed port plan, and test each path before registration.
  • Set up admin authentication, including any PAM or LDAP integration with X-Road roles, and apply the hardening baseline.

How we hand over

  • Deliver an installation record covering package versions, database settings, SELinux policy changes and firewall rules.
  • Document the first registration steps, the information needed for the governing authority and the open items to confirm.
  • Walk your operations and security teams through post-installation checks, log locations and the rollback approach.

How we support

  • Offer ongoing support, upgrades and continuous testing as a retainer after the installation is accepted.
  • Plan upgrades with your team when new X-Road 7 releases or the X-Road 8 production release are assessed for your environment.
  • Retest firewall, SELinux and admin access settings after changes so the configuration you approved stays in place.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.