Does a Keycloak upgrade today bring post-quantum cryptography?
No shipped Keycloak release is documented as supporting post-quantum key exchange or signatures. As of 2026-12-03, the latest version on the Keycloak release notes page is 26.8.2, and that page gave no release date. Moving to 26.8.2 therefore brings no post-quantum algorithms by itself, so the upgrade work is planning and inventory, not a switch you turn on. Keycloak's cryptography is spread across realm keys used to sign tokens, the HTTPS listener, outgoing TLS trust, the Java runtime underneath, and the clients and SAML partners that consume its output. Each of these has to be inventoried and configured separately. The maintainers' parent issue #43690 also lists making post-quantum cryptography the default, and deprecating legacy algorithms, as non-goals for the current stage.
Start with the Java runtime. Keycloak's 26.6.0 release notes say the server container image still uses OpenJDK 21 to support FIPS mode, while the project supports running on OpenJDK 25. Issue #45168 records a contributor's comment that post-quantum work needs at least Java 24, which has native ML-KEM and ML-DSA APIs. Confirm which JDK your image and build use, and whether your FIPS requirement forces you to stay on that version. In the realm keys documentation, the key providers are rsa-generated, rsa and java-keystore, and the default RSA key size is 2048 bits with RS256 signing. The FIPS guide says strict mode requires RSA keys of at least 2048 bits and disallows RSA1_5 by default. Record which key provider and algorithm each realm uses, because that list is the starting point for any later change.
For TLS, the https-protocols option defaults to TLSv1.3,TLSv1.2, and https-cipher-suites has no fixed default, so Keycloak chooses one. The features guide lists fips:v1 as supported but disabled by default, and it lists no post-quantum or hybrid key exchange feature flag. Issue #43691 proposes hybrid key exchange in TLS 1.3 behind an experimental flag named PQC_TLS_KEY_EXCHANGE, but it is still open, targets Keycloak 27, and has no linked pull requests. ML-DSA token signing in issue #43692 is also open with no milestone. Maintainer stianst said in discussion #40496 that token signing ranks below TLS because tokens are short-lived. Before planning a client change, ask your clients and SAML partners which algorithms they accept, since a token format change affects every relying party.
Which Keycloak components need work, by version and source date
This table lists each Keycloak component that a post-quantum upgrade touches, the version or milestone the source applies to, and the date the source was checked. Read the status column first: entries marked not shipped describe open work or development code, not a feature you can enable today. Confirm any entry against your own Keycloak version before you plan changes.
| Component | What the sources say | Version or milestone | Source date |
|---|---|---|---|
| Realm signing keys | Realms generate an RSA key pair and self-signed certificate at creation. Providers are rsa-generated, rsa and java-keystore. Defaults are RS256 and 2048-bit RSA. No post-quantum key provider is documented as shipped. | Current docs, nightly tree | Issue 46336 updated 2026-11-26 |
| HTTPS and TLS termination | The HTTPS certificate comes from PEM files or a PKCS12 or JKS keystore, and PEM takes precedence. Encrypted PKCS#8 PEM keys are supported. The default protocols are TLSv1.3 and TLSv1.2. No hybrid key exchange option is documented. | Keycloak 26.8.0 for encrypted PEM keys | Release notes and TLS guide, checked 2026-12-03 |
| Truststore for outgoing TLS | Outgoing trust uses Java default certificates plus any added through truststore paths. The generated truststore is PKCS12, or BCFKS in FIPS strict mode. | Current docs | Truststore guide, checked 2026-12-03 |
| FIPS mode | Enabled with the fips feature and approved mode needs fips-mode strict. Strict mode requires RSA keys of at least 2048 bits and disallows RSA1_5 by default. BouncyCastle FIPS jars must be added by the operator. This is FIPS 140-2 mode, not a post-quantum mode. | fips:v1 supported, disabled by default | FIPS guide and features guide, checked 2026-12-03 |
| JDK runtime | Keycloak runs on OpenJDK 25, but the server container image uses OpenJDK 21 to support FIPS mode. The guide recommends OpenJDK 21 for compliance. Issue 45168 says PQC work needs at least Java 24 for native ML-KEM and ML-DSA APIs. | Keycloak 26.6.0 for JDK 25 support | Release notes, checked 2026-12-03 |
| TLS key exchange (hybrid) | Issue 43691 proposes hybrid key exchange in TLS 1.3 behind an experimental PQC_TLS_KEY_EXCHANGE flag, with a dependency on JEP 527. The flag is not in the features guide, so no shipped release documents this support. Not in a shipped release. | Milestone 27.0 Development, still open | Issue 43691, checked 2026-12-03 |
| ML-DSA token signing | Issue 43692 aims to publish ML-DSA keys and issue and verify ML-DSA-signed OAuth and OpenID Connect tokens. The issue has no milestone and no linked pull requests. A nightly Javadoc class exists, but the page does not say it is released. Not in a shipped release. | No milestone, development tree only | Issue 43692 and nightly Javadoc, checked 2026-12-03 |
| SAML signatures | The inventory flags RSA_SHA1 and DSA_SHA1 for removal. Issue 45168 records an IETF draft work stream for PQC in XML signatures that would affect SAML support. No PQC SAML signing is documented as shipped. | Open issues, no release | Issue 46336 and 45168, checked 2026-12-03 |
| Parent PQC readiness work | Issue 43690 lists making PQC the default and deprecating legacy algorithms as non-goals for this stage. Token signing is lower priority than TLS, per a maintainer comment, because tokens are short-lived. | Milestone 27.0 Release, 1 of 12 sub-issues complete | Issue 43690 and discussion 40496, checked 2026-12-03 |
Which parts of Keycloak touch public-key algorithms
Keycloak uses public-key cryptography in several separate places: realm signing keys, the HTTPS certificate, outgoing TLS trust and the tokens and assertions it signs or encrypts. Each one changes differently in an upgrade, so an upgrade plan should treat them as separate work items with their own owners and tests.
Realm signing keys
Each realm has a key pair that signs tokens, and a self-signed certificate is generated when the realm is created. Realm keys come from three providers: rsa-generated, rsa (an uploaded PEM key with an optional certificate) and java-keystore. Keycloak's default for RSA keys is RS256 with a 2048-bit key. A realm holds one active key pair at a time plus any number of passive keys, so a new algorithm can be introduced by adding a key and promoting it, then checking every client that validates the tokens. Confirm which algorithms each relying party accepts before you change the active key.
HTTPS certificate and key files
The HTTPS certificate is set either with https-certificate-file and https-certificate-key-file (PEM) or with https-key-store-file (PKCS12 or JKS), and PEM files take precedence if both are configured. Keycloak 26.8.0 added support for encrypted PKCS#8 PEM private keys through --https-certificate-key-file-password, which matters if your keys are stored encrypted. Certificates and keystores reload every hour by default, so a replaced certificate is picked up without a restart. Check which certificate and key algorithm your current chain uses, and confirm that your issuing CA can produce a replacement before you plan a change.
TLS protocol and cipher settings
The https-protocols option defaults to TLSv1.3,TLSv1.2, and deprecated protocols are disabled by default. A protocol value that the JRE does not support is silently ignored, so a typo or an unsupported entry will not produce an error. https-cipher-suites has no fixed default, and Keycloak picks a reasonable set when none is given. Any change to the TLS group or cipher configuration depends on the JDK underneath, so test the exact runtime you deploy, not only the Keycloak version.
Outgoing trust and hostname verification
Keycloak trusts outgoing TLS connections using Java's default certificates plus any added through --truststore-paths. The tls-hostname-verifier option defaults to DEFAULT. The generated truststore is PKCS12 by default and BCFKS in FIPS strict mode. Connections to identity brokers, LDAP, key discovery endpoints and remote JWKS sources all depend on this trust store. Inventory each outbound endpoint and its certificate chain, because a post-quantum change to a remote server's certificate could break a connection that Keycloak itself does not control.
Token and assertion signatures
Keycloak signs and encrypts tokens and assertions with RSA (RS and PS), ECDSA (ES256, ES384, ES512), EdDSA, RSA-OAEP and ECDH-ES. SAML signatures also include RSA_SHA1 and DSA_SHA1, which the project's cryptographic inventory flags for removal. Maintainers have said token signing is a lower priority than TLS because tokens are short-lived, and that hybrid signatures are not supported by JWS. Build a list of which clients and resource servers verify each algorithm, and confirm with each owner that they can accept a different algorithm before you change one.
Keycloak issue 46336The JVM and FIPS mode
The server container image uses OpenJDK 21 to support FIPS mode, while Keycloak 26.6.0 also runs on OpenJDK 25. Strict FIPS mode requires RSA keys of at least 2048 bits and disallows RSA1_5 by default. Outside strict mode, RSA keys below 2048 bits remain supported and RSA1_5 stays available. The BouncyCastle FIPS jars must be added through providers because Keycloak does not ship them. Any cryptographic upgrade starts with the JDK version and whether you run FIPS, since both decide which algorithms the runtime can use.
Keycloak's post-quantum upgrade touches TLS, the JVM, realm keys and clients in different ways
The diagram starts with browsers and API clients connecting to Keycloak over HTTPS, where the TLS protocol, cipher and certificate settings apply. Keycloak runs on a JVM whose default and added truststores govern outgoing TLS, and in FIPS strict mode uses BouncyCastle providers and a BCFKS truststore. Realm key providers sign tokens that relying parties verify, so the key algorithm and any client verification code must be checked together. Post-quantum key exchange and ML-DSA paths are shown as not yet in a shipped release.
Keycloak upgrade touchpoints for TLS, JVM, realm keys and relying parties.
How the upgrade changes for FIPS, OpenJDK 21 and OpenJDK 25 deployments
In a standard deployment, Keycloak runs with --fips-mode at its default of non-strict, or without the FIPS feature at all. The FIPS guide sets this default, and outside strict mode RSA keys below 2048 bits remain supported and RSA1_5 stays available, according to the maintainers' cryptographic inventory. Because the server is not held to the strict rules, the inventory has to record what the realm and clients actually use rather than what the product would permit.
- Key sizes: Realms can still hold RSA keys below 2048 bits, so check each realm's key providers and key lengths.
- Default algorithms: The inventory lists RS256 as the default RSA signing algorithm and a default RSA key size of 2048 bits, so confirm what new realms receive.
- Legacy algorithms: Review whether
RSA1_5or SAMLRSA_SHA1andDSA_SHA1appear in client or realm settings. - Truststore format: The generated truststore is PKCS12 by default in this mode.
- Post-quantum support: No shipped release is documented as supporting post-quantum key exchange, so non-strict mode does not change that position.
Confirm these settings against your own realm exports and your Keycloak version before you plan any change.
FIPS strict mode is enabled with --features=fips and --fips-mode=strict, and it requires the BouncyCastle FIPS jars that you download and add to providers, because Keycloak does not ship them. Under this mode the FIPS guide sets stricter limits on keys and algorithms. FIPS 140-2 approved mode describes which cryptographic modules and algorithms the mode uses. It does not describe post-quantum support, so a strict deployment can be fully FIPS-configured and still have no post-quantum key exchange or signatures.
- Key sizes: Strict mode requires RSA keys of at least 2048 bits.
- Disallowed algorithm:
RSA1_5is disallowed by default. - Truststore: The generated truststore is BCFKS in FIPS strict mode, so plan for that format in any tooling that reads it.
- Password hashing: The default
argon2password hashing is not supported under FIPS 140-2, so confirm your password policy and existing hashes before you change the mode. - JDK choice: The guide recommends OpenJDK 21 for compliance.
Before you change any FIPS setting, confirm that your provider jars match your Keycloak version, and confirm the mode with your compliance owner.
Keycloak 26.6.0 supports running on OpenJDK 25, but its server container image continues to use OpenJDK 21 to support FIPS mode. This split means a deployment that runs the official container with FIPS has a JDK that differs from the one the release notes mention for general support. Treat the runtime and the mode as separate decisions, and record both in your inventory.
- Runtime for FIPS: Keep the server container on OpenJDK 21 when you need FIPS mode, as the container image does.
- Runtime elsewhere: If you run Keycloak on OpenJDK 25 outside the container, confirm FIPS support with your own tests rather than assuming it.
- Post-quantum readiness: The maintainers' tracking issue notes that PQC work needs at least Java 24 for native ML-KEM and ML-DSA APIs, so the JDK version alone does not enable post-quantum algorithms in Keycloak.
- Key exchange: The proposal for hybrid TLS 1.3 key exchange depends on a JDK with JEP 527 and an experimental flag, and no shipped release documents it.
- Verification: Record the exact JDK build and container image tag that each environment runs.
Check the JDK in each running environment against your change records before you schedule an upgrade.
Which steps to take before planning a Keycloak post-quantum upgrade
This sequence builds an inventory of where a Keycloak deployment uses public-key cryptography, from realm keys and token algorithms to TLS, the Java runtime and the clients that verify tokens. It gives the team a dated record of what exists today, so any later upgrade plan starts from facts rather than assumptions.
Inventory realm keys, token algorithms and SAML bindings
The realm administrator lists every realm and, for each, the active and passive keys, their provider types (rsa-generated, rsa, or java-keystore) and their key sizes. Record the token signing and encryption algorithms configured for each client, and the SAML signature and binding settings for each SAML client. Keycloak's default is RS256 for RSA keys and a 2048-bit key size, and the cryptographic inventory in issue #46336 lists the public-key algorithms in use. The step closes when the team has a spreadsheet or export that matches the admin console for every realm, and any SAML client still using RSA_SHA1 or DSA_SHA1 is flagged.
Record TLS and truststore settings and their defaults
The server administrator records the values of the https-protocols, https-cipher-suites, https-port and certificate options that the deployment sets, and notes which ones are left at their defaults. Keycloak's TLS guide says https-protocols defaults to TLSv1.3,TLSv1.2 and that unsupported values are silently ignored, so the team should confirm the effective value from the running server rather than from the configuration file. The same record covers the truststore paths, the tls-hostname-verifier setting and the reload period for certificates. The step closes when each setting is written down with its source, either an explicit value or the documented default, and the team has checked the effective values on a running instance.
Confirm JDK and container image versions against the FIPS guide
The platform owner records the JDK version and the server container image tag used in each environment. The Keycloak 26.6.0 release notes say the server container image continues to use OpenJDK 21 to support FIPS mode, while Keycloak supports OpenJDK 25, so the two may differ. The FIPS guide recommends OpenJDK 21 for compliance and notes that strict mode needs RSA keys of at least 2048 bits. Check whether the deployment runs in FIPS mode, whether it uses the non-strict or strict setting, and whether it loads the BouncyCastle FIPS jars. The step closes when the team has a table of runtime versions and FIPS settings for each environment, checked against the current FIPS guide.
List relying parties and clients that verify tokens
The integration owner lists every application, API gateway and service that verifies tokens or SAML assertions issued by each realm. For each one, record the library or adapter in use, its version, and the algorithms it accepts. Keycloak's own signing changes do not reach these relying parties on their own, so the list is needed before any later change to token algorithms or keys. Include services that cache JWKS documents or pin keys. The step closes when every relying party has an owner, a library version and a known list of accepted algorithms, and the team has confirmed that the list covers every client listed in the first step.
Check the features guide and issues for shipped changes
The identity team checks the Keycloak features guide for any post-quantum or hybrid feature flag listed as supported, preview, deprecated or experimental. At the time of the facts, the guide lists fips:v1 as supported but disabled by default and no post-quantum key exchange flag. Then check issue #43691 for hybrid TLS key exchange and issue #43692 for ML-DSA token signing, noting their milestones and linked pull requests. Issue #43690 states that making PQC the default is a non-goal for this stage. The step closes when the team has a dated note of the features guide, the release notes and the status of both issues, with the Keycloak version it was checked against, and any shipped change is confirmed in the release notes before it is relied on.
Test any setting change in a non-production realm
Before a change is made to any realm key, token algorithm or TLS setting, the team applies it in a separate non-production realm and runs the flows that the relying parties use. Test sign-in, token issuance, token verification by each relying party, SAML assertion handling and the TLS handshake from each client type. Keep the production realm unchanged until the results match the expected behavior. Remember that the rotation guidance says a realm holds one active key pair at a time, with any number of passive keys, so a new key is only used when it has the highest provider priority. The step closes when the test realm has passed each flow, the results are recorded with the Keycloak and JDK versions used, and the team has a written rollback step for the production realm.
Is hybrid key exchange in TLS 1.3 a shipped option in Keycloak?
Hybrid key exchange in TLS 1.3 is proposed for Keycloak but is not documented as a shipped option. The relevant work is Keycloak issue #43691, which proposes hybrid key exchange in TLS 1.3 behind an experimental feature flag named PQC_TLS_KEY_EXCHANGE. The issue says the feature would depend on a JDK that includes JEP 527, would add no extra configuration options, and targets full support in Keycloak 27. It was still open on 2026-12-03, carried the 27.0 Development Milestone, and showed no linked pull requests on that date.
The Keycloak features guide, checked for this page, lists no post-quantum or hybrid key exchange flag among its supported, preview, deprecated or experimental features. For that reason, no shipped release is documented as offering post-quantum key exchange. A reader cannot assume a hybrid TLS 1.3 mode is available in any Keycloak release from the issue alone, since a proposal, a milestone and a flag name do not establish that the code has been merged or released.
Before you plan around this capability, confirm its status directly with the Keycloak maintainers, either on issue #43691 or through the project's published channels. Ask which release, if any, will contain the change, whether it will be enabled by default or behind a flag, and which JDK version the server image will run. Until that answer is in writing, treat TLS 1.3 hybrid key exchange as unavailable in your planning, and keep your TLS configuration review focused on the options the TLS guide documents today.
Can Keycloak issue and verify post-quantum signed tokens?
Does Keycloak support ML-DSA token signing today?
No released Keycloak version is documented as issuing or verifying ML-DSA-signed tokens. The tracking issue for ML-DSA in OAuth and OpenID Connect, keycloak issue 43692, was still open on 2026-12-03. It had no milestone, no linked pull requests, and 3 of 9 sub-issues complete. Its stated aim is to publish ML-DSA keys and to issue and verify ML-DSA-signed tokens, so that work has not shipped. Confirm the status against the issue and the release notes before you record an answer for a vendor review.
Is the ML-DSA key provider in the Keycloak nightly build released?
Not as far as the documentation shows. The nightly Javadoc for 999.0.0-SNAPSHOT lists a GeneratedMlDsaKeyProviderFactory class in the org.keycloak.keys package. That confirms key provider code exists in the development tree. It does not make the feature a released capability. A class in a snapshot build can change, be renamed, or be removed before any release, so treat it as work in progress and not as a supported option for production realms.
Why is post-quantum token signing lower priority for Keycloak maintainers?
The maintainer stianst said on 2025-10-22, in discussion 40496, that token signing is lower priority than TLS. His reasoning is that tokens are short-lived, while store-now-decrypt-later attacks are the bigger concern for data protected by key exchange. In the same comment he said hybrid signatures are not supported by JWS, which is the format Keycloak uses for tokens. Plan your timeline on that basis. Token signing is not the first item the maintainers have committed to.
Can Keycloak use hybrid signatures for tokens?
No hybrid signature mode for tokens is documented. In the same discussion, the maintainer said hybrid signatures are not supported by JWS. JWS is the signature format Keycloak uses for OAuth and OpenID Connect tokens. A hybrid scheme would need a format and a verification path that the JWS side does not yet define. Ask any vendor or implementation partner to point to the specification and the Keycloak code path that would carry a hybrid signature, rather than accepting a general statement about hybrid support.
How would post-quantum public keys be published in Keycloak?
The question is unsettled. The maintainer said in discussion 40496 that JWK publication of post-quantum keys was not settled. Keycloak publishes realm keys through a JWK set endpoint that relying parties read to verify tokens. A relying party needs to know the key type and algorithm identifier before it can verify a token, so the publication format determines client compatibility. Until the format is settled, test any verifier you depend on against a non-default key type before you rely on it, and do not assume a published key will parse in your existing client libraries.
What does post-quantum SAML signing work mean for SAML in Keycloak?
Post-quantum signing for SAML depends on work in the IETF for XML signatures, which is still a draft. Keycloak issue 45168, a spike opened 2026-01-06 and still open, records that this draft work stream would affect SAML support. Keycloak's SAML signing still uses RSA_SHA1 and DSA_SHA1 in parts of its code, which the cryptographic inventory in issue 46336 flags for removal. Do not assume SAML will receive post-quantum signatures on the same timeline as OAuth tokens. Ask the vendor for the target version and the standard it will follow.
What should an engineer check before relying on post-quantum tokens from Keycloak?
Confirm three things against the current release, not the roadmap. First, check that the release notes for your version name ML-DSA or post-quantum token signing. Second, check that issue 43692 has a milestone and linked pull requests, since its absence means no delivery is scheduled. Third, test every relying party, resource server and gateway in your environment against a realm whose key type you have changed in a non-production system. Record the Keycloak version, the JDK, and the client libraries you tested, because a token that verifies on one version may fail on another.
What Keycloak has not published, and what to ask the vendor
Several items that a post-quantum upgrade depends on are not documented as shipped or scheduled. Each card names one of these gaps, the question to put to the Keycloak maintainers or vendor, and the issue or page where the answer should appear.
Shipped post-quantum key exchange
Issue #43691 proposes hybrid key exchange in TLS 1.3 behind an experimental flag named PQC_TLS_KEY_EXCHANGE, and it depends on a JDK with JEP 527. As of 2026-12-03 the issue is still open, has no linked pull requests, and the features guide does not list the flag. Ask which release, if any, will ship this feature, and confirm in the release notes that the flag exists before relying on it. No shipped release is documented as supporting post-quantum key exchange.
ML-DSA token support date
Issue #43692 aims to publish ML-DSA keys and to issue and verify ML-DSA-signed OAuth and OpenID Connect tokens. As of 2026-12-03 it has no milestone and no linked pull requests, with 3 of 9 sub-issues complete. A nightly Javadoc lists a GeneratedMlDsaKeyProviderFactory class, which shows development code but does not confirm a release. Ask for a target release and whether the issue will be assigned a milestone.
JWK publication format for PQC keys
Keys are published to clients through JSON Web Key sets, and the publication format for post-quantum keys has not been settled. Maintainer stianst said in discussion #40496 on 2025-10-22 that JWS does not support hybrid signatures and that JWK publication of PQC keys was not settled. Ask which JWK encoding Keycloak will use for ML-DSA keys and how existing clients will read them, since a new format affects every relying party that fetches the key set.
Discussion 40496SAML and XML signature plans
Issue #45168 records an IETF draft work stream for post-quantum cryptography in XML signatures, which would affect SAML support. The inventory in issue #46336 also flags RSA_SHA1 and DSA_SHA1 for removal. Ask whether SAML signing will get post-quantum algorithms, which standard Keycloak will follow once the IETF draft is final, and what the removal date is for the SHA-1 options that are still listed.
Issue 45168Client adapter and library support
Post-quantum work so far covers the server, and nothing published says which client adapters or Java libraries will follow. Issue #45168 notes that PQC work needs at least Java 24, which has native ML-KEM and ML-DSA APIs, while the FIPS guide recommends OpenJDK 21 for compliance. Ask which adapters, SDKs and client libraries will receive post-quantum support, the minimum JDK each one needs, and whether they will be supported on the JDK that FIPS mode uses.
Issue 45168Roadmap date for PQC defaults
The parent PQC readiness issue #43690 lists 27.0 as the milestone and states that making PQC the default and deprecating legacy algorithms are non-goals for this stage. The release notes list 26.8.2 as the latest version without a date. Ask for a dated roadmap covering when post-quantum algorithms could become a default, and when RS256 and RSA-based defaults would change, so that operators can schedule key rotation around it.
Issue 43690What can break or silently stay classical during an upgrade
Several Keycloak settings fail without an error, so an upgrade can look finished while parts of the deployment remain classical. The https-protocols option defaults to TLSv1.3,TLSv1.2, and any value the JRE does not support is silently ignored, so a typo or an unsupported entry leaves the server on whatever the runtime negotiates. Confirm the effective protocol list from the running server rather than from the configuration file. Also check that https-cipher-suites is set explicitly if you need a fixed list, since Keycloak selects a default when no value is given and that default can change between releases. The keystore password defaults to password if unset, so every deployment should set one explicitly and confirm it is not the default. Be aware that PEM files take precedence over keystores. If both https-certificate-file and https-key-store-file are configured, the PEM pair is the one in use, so a key you replace in the keystore may have no effect until the PEM files are removed or updated.
Key size and algorithm choices also stay permissive by default. The Keycloak cryptographic inventory in issue #46336 records that RSA keys below 2048 bits remain supported outside strict FIPS mode, and that RSA1_5 stays available. Default signing is still RS256 and classical, and the default RSA key size is 2048 bits. Realm keys are generated automatically when a realm is created, and the rsa and java-keystore providers accept keys you supply, so an administrator must check the algorithm and size of every active and passive key, not only the newest one. The same inventory flags SAML RSA_SHA1 and DSA_SHA1 bindings for removal, which means older SAML configurations need a review before any change is treated as complete. Under --fips-mode=strict, RSA keys must be at least 2048 bits and RSA1_5 is disallowed by default, but that mode is a separate decision with its own consequences, such as the unsupported argon2 password hashing.
Changing signing algorithms or key material can break relying parties that pin keys or algorithms in their own configuration. Clients, resource servers and SAML service providers that hard-code an RSA key, reject algorithms they do not list, or validate against a stored certificate may fail once the active realm key changes. Inventory these relying parties before any change, and confirm with each owner which algorithms and keys they accept. Keep the previous key as a passive key during the transition so that tokens signed before the change still validate, and test each relying party with a token issued after the change. The features guide lists no post-quantum or hybrid key exchange flag among supported, preview, deprecated or experimental features, and issue #43692 for ML-DSA signing shows no milestone or linked pull requests, so no shipped release is documented as supporting post-quantum signatures. Plan the upgrade on that basis and ask the vendor which release, if any, is expected to change this.
Questions engineers and vendor-risk reviewers ask about a Keycloak PQC upgrade
Is Keycloak quantum safe today?
No release is documented as supporting post-quantum key exchange or post-quantum signatures, so Keycloak cannot be described as quantum safe. Keycloak's features guide lists no post-quantum or hybrid key exchange flag among its supported, preview, deprecated or experimental features. The post-quantum work that exists is in the development tree or open issues: a proposed hybrid TLS 1.3 key exchange behind a PQC_TLS_KEY_EXCHANGE flag (issue #43691), and ML-DSA token signing (issue #43692), which was open with no milestone and no linked pull requests as of 2026-12-03. Confirm the current state against the features guide and release notes for the version you run.
Which Keycloak version do I need for post-quantum cryptography?
No Keycloak release is documented as supporting post-quantum cryptography, so no version can be named as the one you need. The latest version in the release notes was 26.8.2 when checked on 2026-12-03, and that page gave no release date. The parent PQC readiness issue (#43690) targeted the 27.0 milestone, and its stated non-goals include making PQC the default and deprecating legacy algorithms. Ask the vendor for the first release that ships post-quantum key exchange or signatures, and check the release notes for that release before you plan the upgrade.
Does a Keycloak post-quantum upgrade cost extra?
The facts supplied contain no license price for Keycloak, and Keycloak is an open-source project, so the software itself has no listed license fee. The costs that matter are internal labor to inventory realms, tokens, TLS and clients, the work to move a JDK and BouncyCastle FIPS jars where you run FIPS mode, and retesting every client and adapter. A quote for outside help should show who does each step, what is one-time and what recurs, and whether any post-quantum features are still experimental, since that affects how much retesting you need. Ask the vendor or your support provider for the license terms that apply to your edition.
What breaks when Keycloak moves to post-quantum algorithms?
Several things depend on public-key cryptography and would need attention. Realm keys default to RS256 and 2048-bit RSA, and the key providers (rsa-generated, rsa and java-keystore) hold the signing keys that clients and resource servers trust. Token signatures, RSA-OAEP and ECDH-ES key encryption, SAML signing, and the TLS certificate and key files all need a plan. Keycloak's FIPS strict mode requires RSA keys of at least 2048 bits and disallows RSA1_5 by default, and the default argon2 password hashing is not supported under FIPS 140-2. Test clients and adapters against any new key type, because token format changes will reach every relying party, not only Keycloak itself.
What should I ask Keycloak or my support vendor about post-quantum plans?
Ask which Keycloak release first ships post-quantum key exchange, and whether it is enabled by default, experimental or a preview feature. Ask whether ML-DSA token signing will ship, what JWK publication format it will use, and whether hybrid signatures are planned, since the maintainers have said hybrid signatures are not supported by JWS and that JWK publication of PQC keys was not settled. Ask which JDK your version requires for the post-quantum work, because a contributor noted that PQC needs at least Java 24, and ask how FIPS strict mode will handle the new algorithms. Get the answers in writing with dates.
Can my team upgrade Keycloak for post-quantum cryptography alone, or do we need outside help?
Your team can do the inventory and the baseline work alone: list realms, key providers and their algorithms, TLS settings, truststore paths, SAML and OIDC clients, and the JDK and FIPS setup. Outside help is most useful for the parts with no shipped support yet, such as testing a hybrid key exchange flag still in development, and for retesting clients and adapters after a key change. Whether you need help depends on how many realms and relying parties you run, whether you use FIPS strict mode, and how many clients you cannot update quickly. Scope any outside engagement in writing with deliverables and timelines before work starts.
Do the NSA advisory or CNSA 2.0 require a commercial Keycloak deployment to move to post-quantum cryptography?
No. The NSA advisory and CNSA 2.0 apply to national security systems, and they do not bind commercial organizations. A commercial deployment can use them as a reference, and a federal contract may require them when the contract says so, so check the terms of any federal customer agreement. Keycloak's own documentation does not state any post-quantum requirement, and no existing commercial compliance obligation in the supplied facts requires post-quantum cryptography. Confirm your own obligations with your compliance team and any contractual requirements before you set a migration date.
How DeployOpen works on this
DeployOpen plans and carries out a Keycloak post-quantum readiness review as a fixed-scope engagement inside your own infrastructure. The work covers the JDK, the crypto providers, realm key configuration, TLS settings and the clients that depend on them, with each finding tied to the exact Keycloak version and edition you run.
How we scope
- We agree the written scope before work starts, naming the Keycloak version, realms, clients and deployment topology in question.
- The scope lists which JDK, FIPS mode and provider jars are in play, since Keycloak's FIPS guide sets specific requirements for each.
- We confirm which SAML and OIDC client integrations are included, because signature and key exchange behavior differs by protocol and client library.
How we build
- We inventory the realm key providers, token signing algorithms and TLS settings, recording the current defaults such as RS256 and 2048-bit RSA keys.
- We test the JDK and provider combinations in a staging copy, checking the server image's OpenJDK 21 requirement against any newer runtime you plan to use.
- We document which post-quantum features are not yet shipped in Keycloak, such as hybrid TLS key exchange and ML-DSA token signing, so the plan rests on what is actually released.
How we hand over
- You receive a written inventory of algorithms, key providers, certificate files and client dependencies, with each item tied to its Keycloak version.
- The findings report separates what Keycloak supports today from what depends on upstream work, with the tracking issue numbers cited for each item.
- We deliver a runbook for the settings that need changing, the order to change them and the tests to rerun after each change.
How we support
- Ongoing support is available as a retainer, which covers re-checking the inventory as Keycloak releases new versions and the upstream issues close.
- We can retest realm key rotations and TLS changes after your upgrades, confirming behavior against the TLS and realm key guides.
- Confirm with your team which Keycloak release and JDK your production environment will run before the review starts, since that choice shapes every later finding.

