Rotation of the Suomi.fi e-Identification keys in the OIDC interface
Summary
- In the production environment, Suomi.fi e-Identification rotates its signature keys each week .
- The Suomi.fi e-Identification address for public keys (jwks_uri) always contains two keys per key type (RSA and EC): one active and one replacement.
- When the keys are rotated, the replacement key becomes the active key, the old active key is deleted and the new replacement key is published.
- The e-service must always select the key on the basis of the key identifier (kid field) and should not assume that the key always remains the same or make assumptions of the number of keys or naming practices.
- The public keys for Suomi.fi e-Identification must be updated in the cache in the e-service more frequently than once a week so that the signature can be verified.
Suomi.fi e-Identification (OpenID Provider, OP) rotates its signature keys on a regular basis (key rotation) and the e-service (Relying Party, RP) must take this into account in its own integration. The keys are rotated automatically and the rotation does not require any manual action in the e-service. However, the implementation of the e-service must retrieve and handle the keys correctly so that the signature of the token response can also be validated when the Suomi.fi e-Identification keys are rotated.
Also read the following instructions:
Updated: 20/11/2026