You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Use SHA-256 certificate thumbprints in realm JWKS and OIDC broker client assertions #55540
Keycloak already publishes both x5t (SHA-1) and x5t#S256 (SHA-256) for certificate-backed RSA keys in the realm JWKS. When an administrator enables Add X.509 Headers to the JWT, the OIDC broker sends x5t in its signed client assertion. Use x5t#S256 by default on both paths. RSA JWK thumbprint generation · Broker assertion generation
Value Proposition
Consumers of the realm JWKS can migrate to x5t#S256 today. Supporting the same header in broker assertions lets external identity providers identify the signing certificate by its SHA-256 thumbprint. RFC 7517 §4.9 · RFC 7515 §4.1.8
Goals
Use x5t#S256 by default for certificate-backed realm keys and for broker assertions when X.509 headers are enabled. Avoid computing SHA-1 on either default path.
Document how administrators can migrate JWKS consumers and external identity providers that require x5t.
Update the Admin Console help for Add X.509 Headers to the JWT to describe the thumbprint the broker sends. Current help text
Non-Goals
Change signing algorithms, rotate realm keys or certificates, or change how Keycloak reads incoming JWKs containing x5t.
Acceptance criteria
For a certificate-backed RSA key, the default realm JWKS response contains x5t#S256 and omits x5t. The value matches the unpadded base64url encoding of the SHA-256 digest of the leaf certificate’s DER bytes.
With X.509 headers enabled, an external identity provider can select the signing certificate by x5t#S256 and verify the broker assertion. With the option disabled, the assertion omits certificate thumbprint headers.
The upgrade guide explains when each path stops emitting x5t by default and what administrators must check before upgrading.
Activity