Skip to main content

Read and rotate the OpenID Connect signing keys

ADMIN GUIDE

Check the keys that sign tokens, rotate them, and know when old keys leave.

Who this guide is for

Superusers who run the OpenID Connect provider.

Why it matters

The signing keys prove that a token came from Claviger. If a key may have leaked, rotate it. Applications read the new key from the published key set without any change on their side.

What you will do, in one sentence

Open OpenID Connect, read the Signing keys table, and choose Rotate keys.

Screens are captured from a seeded test system. Every name, address and number on the screens is invented. Prepared 15 November 2026.

1. The table​

Open OpenID Connect. Scroll to Signing keys.

The signing keys table.The signing keys table.
The signing keys table.
ColumnMeaning
Key IDThe kid in the header of each token.
AlgorithmRS256 or ES256.
Stateactive, retiring or retired.
CreatedWhen the key was made.
Leaves the JWKSWhen a retiring key stops being published. A dash means it stays.

Claviger keeps one active key for each algorithm. It creates the first key when a client first needs a signed token. Before then the table says No signing key yet.

A key marked not encrypted (dev mode) is stored without encryption. That is allowed only in dev mode. Outside dev mode the provider needs the settings encryption key.

2. Rotate the keys​

  1. Choose Rotate keys.
  2. Read the question. It says the current keys stay published for 7 days, so tokens already issued keep verifying.
  3. Confirm. A toast says New signing keys created.

The table then shows the new keys as active and the old ones as retiring, with a leaving date.

Applications must reload the key set

Applications read the keys from the JWKS address. Old keys stay published for the grace period. Check that each application refreshes its copy before the old key leaves.

3. When a key is gone​

  • A retiring key keeps verifying the tokens it signed until its leaving time. Then it leaves the JWKS.
  • A later rotation deletes keys that retired more than 30 days before.
  • Rotations are audited. The private key is hidden in audit entries and never returned by an API.

If you lose or change the settings encryption key, the stored keys become unreadable. Create new ones. The command line also offers claviger oidc rotate-keys, with --alg and --grace options.

A different encryption key breaks the old keys

Changing the settings encryption key without a plan makes the stored signing keys unreadable. Rotate keys after such a change.

4. Quick reference card​

Rotate​

  1. OpenID Connect, Rotate keys.
  2. Confirm.
  3. Check the new active row.

Check the plan​

  1. Old keys stay for 7 days.
  2. Watch Leaves the JWKS.

The grace period is 7 days by default. Use the command line to change it.