Important compatibility note for Configuration Proxy users
The fixes for XRDDEV-3264 and XRDDEV-3265 introduce validation of the validity period of configuration source (Central Server or Configuration Proxy) certificates used to sign global configuration.
Configuration Proxy certificates generated by earlier X-Road versions (< 7.8.3; < 7.7.4; < 7.6.5) may contain an invalid validity period, with the Not After value resolving to Jan 25 20:31:23 1970 GMT. After upgrading to one of these releases (7.8.3; 7.7.4; 7.6.5), global configuration signed with such a certificate is rejected because the certificate is considered expired.
The Not Before value is Jan 1 00:00:00 1970 GMT on all Configuration Proxy signing certificates, including correctly generated ones. Only the Not After value indicates the problem — a certificate is affected only if its Not After value is in 1970.
Central Server signing certificates are not affected: the Central Server generates them with a Not After value in 2038. Global configuration downloaded directly from a Central Server is therefore unaffected.
The issue may affect any environment where global configuration is downloaded from a Configuration Proxy, including:
Configuration Proxies used to distribute global configuration between federated X-Road ecosystems.
Security Servers configured to download global configuration from a Configuration Proxy.
When Configuration Proxies are used to distribute global configuration between federated X-Road ecosystems, it means Security Servers download federated ecosystem’s configuration from its Configuration Proxy.
The failure may be reported as global_conf_missing_verification_cert, even though the verification certificate exists. The configuration client log additionally contains the message Verification certificate for configuration instance <instance> is not currently valid, which confirms the cause.
Verifying the signing certificates before upgrading
Before upgrading, Configuration Proxy operators should verify the validity period of the certificates used by their Configuration Proxies to sign global configuration. Certificates with an invalid validity period must be recreated after the version upgrade.
List the signing keys and the paths of their certificates:
sudo -iu xroad confproxy-view-conf -p <proxy-instance>Note that this command does not display the certificate validity period — a certificate with an invalid validity period is still reported as OK.
Check the validity period of each certificate:
sudo openssl x509 -in /etc/xroad/confproxy/<proxy-instance>/cert_<key-id>.pem -noout -datesThe certificate must be recreated if the
notAftervalue is in 1970.
In all affected deployment scenarios, the Configuration Proxy must be upgraded, its signing certificate recreated, and the corresponding configuration anchor updated before consumers running the new version attempt to validate global configuration signed by that Configuration Proxy.
Upgrade sequence for federated X-Road ecosystems
The upgrade must be coordinated between federation partners because federation configuration updates may be temporarily interrupted while the Configuration Proxies and their signing certificates are being updated.
Security Servers in both federated ecosystems must not be upgraded before the Configuration Proxies have been updated and their signing keys have been renewed.
The interruption occurs whenever an upgraded consumer — either a Configuration Proxy that downloads global configuration from another Configuration Proxy, or a Security Server — encounters a certificate that has not yet been recreated. In a setup where the Configuration Proxies of both parties exchange global configuration with each other, this happens as soon as the Configuration Proxies are upgraded in step 2, and it lasts until the new anchors have been taken into use in step 6.
Federation partners don’t need to run the same version of the Configuration Proxy. Instead, both federation partners should run X-Road 7.8.3, 7.7.4, or 7.6.5, or a later patch release of the respective minor version.
Federation partners agree on a date and time for upgrading the Configuration Proxies that exchange global configuration.
Both parties upgrade their Configuration Proxies to the new X-Road version. Federation configuration updates may be temporarily interrupted at this point.
Each party generates a new Configuration Proxy signing key and certificate. For example:
sudo -iu xroad confproxy-add-signing-key -p <proxy-instance> -t 0The
-toption identifies the token on which the key is generated.0is the software token; if the signing key is stored on a hardware security module, use the identifier of that token instead. The token must be active (logged in) for key generation to succeed. The command prints the identifier of the generated key.Update
conf.iniso thatactive-signing-key-idrefers to the key identifier returned by the previous command. Adding a signing key sets it as the active key only when no active key has been configured yet, so this step is always required on an existing Configuration Proxy.Generate a new external configuration anchor:
sudo -iu xroad confproxy-generate-anchor -p <proxy-instance> -f /tmp/federated-anchor.xmlExchange the newly generated external configuration anchors between the federation partners and configure them on the receiving side.
Verify that federated global configuration updates succeed with the new certificates and anchors.
The interruption does not immediately invalidate previously downloaded global configuration. The impact therefore depends on the configured global configuration expiration period.
If an unexpected issue occurs during the coordinated upgrade, both parties can roll back to the previously installed X-Road version.
The previous signing key and its certificate can be left in place: the anchor contains the certificates of all configured signing keys, and the consumer selects the verification certificate by the hash referenced in the signature. The old key can be removed later with confproxy-del-signing-key.
Upgrade sequence when Security Servers download global configuration from a Configuration Proxy
When Security Servers use a Configuration Proxy as their configuration source, the Configuration Proxy should be upgraded before the Security Servers that consume configuration from it.
The Configuration Proxy should run X-Road 7.8.3, 7.7.4, or 7.6.5, or a later patch release of the respective minor version.
Upgrade the Configuration Proxy to the new X-Road version.
Generate a new Configuration Proxy signing key and certificate:
sudo -iu xroad confproxy-add-signing-key -p <proxy-instance> -t 0Use the identifier of the appropriate token if the signing key is not stored on the software token.
Update
conf.iniso thatactive-signing-key-idrefers to the newly generated signing key.Generate a new configuration anchor for the Configuration Proxy.
Distribute and configure the new anchor on the Security Servers that use the Configuration Proxy as their configuration source. Security Servers running the previous X-Road version accept the recreated certificate, so this step can be completed before they are upgraded.
Verify that the Security Servers can successfully download and verify global configuration from the Configuration Proxy.
Upgrade the Security Servers to the new X-Road version.