Definition

Publish the replacement public key in the trusted issuer's JWKS before signing with it. Verify that representative clients can resolve the replacement key identifier. Keep the earlier verification key for legitimate unexpired tokens while the approved transition remains in effect.

Record the issuer, key identifiers and verifier behavior

List the issuer, token types, intended audiences, permitted algorithms, signer owner and configured JWKS source. Give the replacement key its own key identifier within the issuer's key set. Retain the public key fingerprint or approved identifier and the reference to its managed private-key custody.

Inventory token lifetimes, accepted clock skew and how verifiers refresh cached keys. Include regional gateways or offline verifiers with different refresh behavior. Record the policy for rejecting unexpected issuers, algorithms or key sources.

Official sourcesRFC 7517, JSON Web Key identifier ↗RFC 8725, JSON Web Token Best Current Practices ↗

Verify each stage of the rotation

StageExpected evidence
Prepublish the replacement public keyThe configured issuer JWKS returns the approved replacement identifier. Representative verifiers can retrieve it.
Start using the replacement signerA synthetic token from the intended issuer uses the replacement key and passes normal validation on the supported verifiers.
Maintain planned overlapValid earlier tokens remain verifiable where required. Refresh and clock-skew assumptions are documented.
Retire the earlier signing keyThe planned acceptance window has ended, and verification checks cover the relevant caches and clients.

Review a verifier that fails after the switch

If a gateway reports an unknown key identifier for a synthetic token, confirm its configured issuer and key source, available cache version and refresh policy. Compare the time the replacement key was published with when the gateway first observed it.

Use the normal verifier policy during the test, including issuer, audience and algorithm checks. A suspected compromise follows the incident policy, which may require ending acceptance earlier than a scheduled rotation would.

Frequently asked questions

How long should both public signing keys remain in JWKS?

Base the overlap on the expected lifetime of legitimately issued tokens, tolerated clock skew and verified refresh behavior. Specify the deadline in the change record.

Does a matching kid prove a token is valid?

A key identifier helps locate a candidate verification key for the trusted issuer. Apply the full signature and claims validation policy.

Should I publish the private signing key in JWKS?

Publish only the public verification material in the public JWKS. Retain private signing keys under the approved service and access policy.