Which Keycloak functions depend on RSA and elliptic-curve keys

As of 2026-12-03, Keycloak's realm signing keys, token signatures, TLS certificates, SAML and key encryption rely on RSA and elliptic-curve algorithms, and no shipped release documents post-quantum key exchange or signatures.

On this page

Which Keycloak functions depend on RSA and elliptic-curve keys today

If you are assessing exposure as an operator or security lead, the short answer is that Keycloak's realm keys, token signatures, TLS certificates, SAML signing and RSA-OAEP or ECDH-ES key encryption all depend on RSA and elliptic-curve algorithms. The Keycloak maintainers' cryptographic inventory in issue 46336 lists these uses, and the realm keys documentation describes the key providers that create them. As of 2026-12-03, no shipped Keycloak release is documented as supporting post-quantum key exchange or signatures. The latest version listed in the release notes when checked was 26.8.2, and that page gave no release date for it. This section is written for identity architects, platform engineers and vendor-risk reviewers who must record what a self-hosted Keycloak instance depends on today.

The practical scope is wider than the realm signing key. Issue 46336 records RS256 as the default RSA signature, a default RSA key size of 2048 bits, and ECDSA (ES256, ES384, ES512) and EdDSA options alongside them. It also lists RSA-OAEP and ECDH-ES for key encryption, and SAML signing paths that include RSA_SHA1 and DSA_SHA1, which the inventory flags for removal. Each of these should be traced in your own realm and client configuration, since a realm can run several algorithms at once. The TLS listener is a separate dependency: the Keycloak TLS guide says the default HTTPS protocols are TLSv1.3,TLSv1.2 and that certificates are set through https-certificate-file and https-certificate-key-file or a keystore, so the certificate key type on your listener also needs to be recorded.

Two current settings affect what you can and cannot change. Issue 46336, updated 2026-11-26, notes that RSA keys below 2048 bits remain supported outside strict FIPS mode and that RSA1_5 stays available. Under FIPS strict mode, described in the FIPS guide, RSA keys must be at least 2048 bits and RSA1_5 is disallowed by default. Confirm which mode your deployment runs and which JDK it uses, because the FIPS guide recommends OpenJDK 21 for compliance. For the post-quantum items, the proposals in issues 43691 and 43692 are still open, and the features guide lists no post-quantum feature flag among its supported, preview or experimental features. Ask the vendor for the status of these issues before you record any answer as settled.

Which Keycloak functions use public-key algorithms, by component and version

This table lists each Keycloak function that relies on public-key cryptography, the algorithms named in the sources, the defaults and the version or mode each applies to. Read the sources column first, since several facts come from an open issue that the maintainers update over time. The main takeaway is that RSA and ECDSA remain the defaults, while no post-quantum key exchange or ML-DSA signing is documented as released.

FunctionAlgorithms named in the factsDefaultsVersion or mode it applies toSource and date
Realm signing keysRSA keys from rsa-generated, rsa (uploaded PEM) and java-keystore (JKS, PKCS12 or BCFKS) providersKey pair and self-signed certificate generated when a realm is created, RSA key size 2048 bitsAll Keycloak releases covered by the realm keys documentationRealm keys documentation (undated); issue 46336, opened 2026-02-13
Token signaturesRS256, RS and PS (RSA), ES256, ES384, ES512 (ECDSA), EdDSARS256 for RSA keysKeycloak issue 46336 inventory; updated 2026-11-26Issue 46336, opened 2026-02-13
Key encryptionRSA-OAEP, ECDH-ES (RSA1_5 also remains available)Not stated in the factsRSA1_5 is disallowed by default in FIPS strict modeIssue 46336; FIPS guide (undated)
SAML signingRSA_SHA1 and DSA_SHA1, which the inventory flags for removalNot stated in the factsCurrent SAML signing configuration; removal is flagged, with no removal date givenIssue 46336, opened 2026-02-13
HTTPS certificates and key filesPEM key files, PKCS12 or JKS keystores; RSA keys of at least 2048 bits in strict FIPS modePort 8443; keystore password defaults to password; certificates reload every 1hEncrypted PKCS#8 PEM keys supported from 26.8.0TLS guide (undated); release notes for 26.8.0
Outgoing TLS trustJava default certificates plus any added via truststore pathstls-hostname-verifier set to DEFAULT; truststore is PKCS12 by defaultBCFKS truststore in FIPS strict modeTruststore guide (undated)
FIPS strict modeRSA keys of at least 2048 bits; RSA1_5 disallowed by default; argon2 not supportedfips-mode defaults to non-strict; fips feature disabled by defaultRequires --features=fips and --fips-mode=strict; OpenJDK 21 recommended by the guideFIPS guide (undated); release notes for 26.6.0
Post-quantum key exchange and ML-DSAHybrid TLS 1.3 key exchange (PQC_TLS_KEY_EXCHANGE flag) and ML-DSA signing are not documented as releasedNot documented as releasedIssue 43691 targets Keycloak 27; issue 43692 has no milestoneIssues 43691 and 43692, status as of 2026-12-03

Which Keycloak components carry RSA and EC keys

Keycloak uses RSA and elliptic-curve keys in several places: realm signing keys, token signatures, HTTPS, outgoing trust and SAML. Each component below states what it uses and what the vendor's documentation and issue tracker say about defaults, so you can build an inventory before planning any change.

Realm keys and passive keys

Each realm gets a key pair and a self-signed certificate when it is created. A realm has one active key pair at a time, plus any number of passive keys. The highest provider priority becomes the active key. The key providers are rsa-generated, rsa (an uploaded PEM key) and java-keystore. The realm keys guide suggests rotating new keys every three to six months. Confirm which provider each realm uses and whether old passive keys are still present.

Realm keys source

Token signing for OAuth and OpenID Connect

Keycloak signs access, ID and refresh tokens with the realm's active key. Maintainer-authored issue #46336 lists RS256 as the default RSA signature, along with ES256, ES384, ES512 and EdDSA as supported options. The default RSA key size is 2048 bits. Check which algorithm each client expects, because a client that verifies tokens against a fixed algorithm will break if the realm key changes. Post-quantum token signing is not shipped; see the ML-DSA item below.

Crypto inventory issue

TLS for HTTPS and management interfaces

Keycloak terminates TLS itself using a certificate set with https-certificate-file and https-certificate-key-file (PEM) or https-key-store-file (PKCS12 or JKS). PEM files take precedence if both are set. The https-protocols option defaults to TLSv1.3,TLSv1.2, and the management interface inherits HTTP options only when http-management-scheme is inherited. Confirm the certificate's key type and whether a reverse proxy terminates TLS in front of Keycloak instead.

Keycloak TLS guide

Outgoing trust in the truststore

For outgoing connections, Keycloak trusts Java's default certificates plus any added with --truststore-paths. The tls-hostname-verifier option defaults to DEFAULT. The generated truststore is PKCS12 by default and BCFKS in FIPS strict mode. Identity providers, LDAP and any external service Keycloak calls depend on the certificates in this store. List the trust anchors each deployment relies on before you change them.

Truststore guide

SAML signing and encryption

SAML assertions and metadata use signatures and, where configured, encryption based on the realm's keys. Issue #46336 lists RSA_SHA1 and DSA_SHA1 among SAML algorithms and flags them for removal, and it lists RSA1_5 and RSA-OAEP for key encryption. Check which SAML clients use which algorithms and whether any still rely on SHA-1 signatures. Issue #45168 notes that PQC for XML signatures depends on an IETF draft still in progress.

Crypto inventory issue

FIPS mode and its key rules

FIPS 140-2 mode is enabled with --features=fips, and --fips-mode defaults to non-strict. Strict mode requires RSA keys of at least 2048 bits and disallows RSA1_5 by default. The server image uses OpenJDK 21 to support FIPS mode. Outside strict mode, keys below 2048 bits and RSA1_5 remain available. Confirm the mode in each environment and which key sizes its realms use.

Keycloak FIPS guide

How the answer changes by Keycloak version line and FIPS mode

In a standard deployment without FIPS mode, Keycloak keeps the broadest set of public-key options available. The Keycloak issue inventory records that RSA keys below 2048 bits remain supported outside strict FIPS mode, and that RSA1_5 stays available. That means a realm or client can still be configured with weaker RSA settings, so the key size and algorithm choices need to be reviewed rather than assumed to be safe.

  • RSA key size: keys below 2048 bits remain accepted outside strict FIPS mode, as recorded in the Keycloak issue inventory updated on 2026-11-26.
  • RSA1_5 availability: the RSA1_5 key encryption algorithm stays available in this mode.
  • Default signing algorithm: the inventory lists RS256 as the default for RSA keys, with a default RSA key size of 2048 bits.
  • Public-key algorithms in use: RSA (RS and PS), ECDSA (ES256, ES384, ES512), EdDSA, RSA-OAEP and ECDH-ES all appear in the inventory for this mode.
  • Realm key rotation: the realm keys documentation suggests creating new keys every three to six months.

Confirm the key size and algorithm of every realm and client key in your deployment, and record any that fall below 2048 bits or use RSA1_5.

Where Keycloak's public-key operations sit in login and token flows

The diagram starts at a client's TLS connection to Keycloak's HTTPS listener, which is set by a certificate file and key file. Inside Keycloak, the realm key provider signs tokens with the active key and holds passive keys for verification, while SAML assertions are signed with realm keys. Outgoing TLS trust for federation calls runs through the truststore. Key exchange on the TLS edges is classical, since no shipped post-quantum key exchange option is documented, so check which edges your version actually uses.

Public-key uses in Keycloak TLS, token signing, SAML and federation trust.

What Keycloak has not documented for post-quantum key exchange and signatures

No shipped Keycloak release documents post-quantum or hybrid key exchange. Issue #43691 proposes hybrid key exchange in TLS 1.3 behind an experimental feature flag named PQC_TLS_KEY_EXCHANGE. The proposal depends on a JDK that includes JEP 527, targets Keycloak 27, and was still open as of 2026-12-03 with no linked pull requests. The Keycloak features guide lists no post-quantum or hybrid flag among its supported, preview, deprecated or experimental features. For HTTPS on the Keycloak server, that means the TLS settings in your deployment should be treated as classical until a release note or documentation page says otherwise. Confirm the current status of #43691 and the features list before any change request, and record the date you checked.

Token signing has no documented post-quantum path. Issue #43692 covers ML-DSA for OAuth and OpenID Connect, including publishing ML-DSA keys and issuing and verifying ML-DSA-signed tokens. It was open as of 2026-12-03 with no milestone and no linked pull requests. The nightly Javadoc lists a GeneratedMlDsaKeyProviderFactory class, which shows ML-DSA key code exists in the development tree. The page does not say it is released, so do not count it as available in any version you run. Realm keys today remain RSA, ECDSA or EdDSA, as described in the realm key documentation for the release you deploy.

Signing and TLS have different timelines, and the maintainers have said so. In discussion #40496, maintainer stianst said on 2025-10-22 that token signing is lower priority than TLS because tokens are short-lived and store-now-decrypt-later attacks are the larger concern. The same comment says JWS does not support hybrid signatures and that publishing post-quantum keys through JWK was not settled. Plan for TLS key exchange and token signing separately: a hybrid TLS option may be the first change you can test, while signature changes depend on JWS and JWK work that has no documented date. Ask Keycloak support or your vendor for their current position, and record their answer with the date.

What to check in your Keycloak deployment before any change

This sequence gives you an inventory of the keys, TLS settings, FIPS posture, SAML bindings and runtime versions that your Keycloak deployment uses today. Each step closes with a recorded value, so you can judge exposure before you change anything.

  1. Inventory realm key providers and active key age

    For each realm, list the key providers under Realm settings, then Keys. Record the provider type (rsa-generated, rsa for an uploaded PEM key, or java-keystore), the algorithm, the key size, and which key is active. Note the creation date of the active key. Keycloak keeps one active key pair per realm plus any passive keys, and the realm keys guide suggests rotating every three to six months, so compare each active key's age against that guidance. The step is closed when you have a table of every realm, its active key, its age and its key size, with any realm whose active key is older than six months flagged for review.

  2. List TLS settings and cipher suites

    Collect the effective TLS configuration of each Keycloak node and of any management interface. Record the value of https-protocols, which defaults to TLSv1.3,TLSv1.2, and check whether it was overridden. Record https-cipher-suites, which has no fixed default, so note whether a value is set or whether Keycloak is choosing its own. Also note the certificate source (https-certificate-file with https-certificate-key-file, or https-key-store-file), the certificate reload period, and whether https-management-* options inherit from the HTTP settings. Confirm the values against the running configuration rather than the config file alone, because a protocol the JRE does not support is silently ignored. The step is closed when you have a recorded TLS profile per node.

  3. Confirm FIPS mode and its strictness

    Check whether the fips:v1 feature is enabled through --features and, if it is, which --fips-mode value is set. The default is non-strict, and approved mode requires strict. If strict mode is on, note that RSA keys must be at least 2048 bits and that RSA1_5 is disallowed by default. Also check that the BouncyCastle FIPS jars are present in providers, since Keycloak does not ship them. Where FIPS is off, record that, because the realm keys guide and issue 46336 show that RSA keys below 2048 bits and RSA1_5 remain supported outside strict FIPS mode. The step is closed when you have a single statement of FIPS status and mode for each deployment, reviewed by someone who can confirm it against your compliance requirements.

  4. List SAML bindings using RSA_SHA1 or DSA_SHA1

    Open each SAML client and identity provider configuration and record the signature algorithm in use. Flag any client or provider set to RSA_SHA1 or DSA_SHA1, which the maintainers' cryptographic inventory marks for removal. Include the SAML clients that your applications depend on, since changing the algorithm on the Keycloak side can break service provider validation. Record the client ID, the realm and the algorithm for each one. The step is closed when every SAML client and identity provider has a recorded signature algorithm and every SHA-1 entry is on a list that owners have acknowledged.

  5. Record the JDK and container image in use

    Identify the Java runtime and the server container image for each deployment. Run the server with the JDK it actually uses, and check the image tag or the Dockerfile base image rather than assuming. Keycloak 26.6.0 release notes say the server container image uses OpenJDK 21 to support FIPS mode, and the FIPS guide recommends OpenJDK 21 for compliance, so note whether your image matches that. Record the Keycloak version from the running server, and check it against the latest version listed on the release notes page, noting the date you checked. The step is closed when you have, for each environment, the Keycloak version, the JDK version and the image reference in one record.

What Keycloak has not published about post-quantum support, and what to ask

The Keycloak features guide and release notes do not document post-quantum key exchange, post-quantum token signing or a default post-quantum configuration. The gaps below are the open items to raise with the project maintainers or with any vendor that packages Keycloak, along with what to ask.

No shipped post-quantum key exchange

The features guide lists no post-quantum or hybrid key exchange feature flag among supported, preview, deprecated or experimental features. Issue #43691 proposes hybrid key exchange in TLS 1.3 behind an experimental flag named PQC_TLS_KEY_EXCHANGE, but it shows no linked pull requests. Ask the maintainers whether any released version carries this flag, and which JDK it requires.

Keycloak features guide

ML-DSA keys and tokens not released

Issue #43692 aims to publish ML-DSA keys and to issue and verify ML-DSA-signed OAuth and OpenID Connect tokens. It had no milestone and no linked pull requests when checked, and only part of its sub-issues were complete. A GeneratedMlDsaKeyProviderFactory class appears in the nightly Javadoc, but that does not show a released feature. Ask which release will first contain ML-DSA token signing, and whether the realm key provider will accept ML-DSA keys.

Issue 43692

JWK publication of PQC keys unsettled

A maintainer stated in discussion #40496 that publishing post-quantum keys in JSON Web Key format was not settled. Clients that fetch the realm's JWK set depend on that format to verify tokens. Ask the maintainers how post-quantum public keys will appear in the JWK set endpoint, and whether existing clients can parse them before a switch.

Discussion 40496

No hybrid signatures in JWS

The same maintainer stated in discussion #40496 that JSON Web Signature does not support hybrid signatures. Token signing therefore has no documented path that carries a classical and a post-quantum signature together. Token signing was also given lower priority than TLS, because tokens are short-lived. Ask whether the project plans a hybrid JWS option, and what a relying party would need to verify one.

PQC not the default

Parent issue #43690 lists making post-quantum cryptography the default, and deprecating legacy algorithms, as non-goals for this stage. The realm key default remains RS256 with 2048-bit RSA keys, per the maintainer-authored inventory in issue #46336. Ask the project whether it will publish a date or criteria for changing the default algorithm, and whether a post-quantum setting will be opt-in.

Issue 43690

No release date in release notes

The release notes page showed 26.8.2 as the latest version when checked on 2026-12-03, and it gave no release date for any post-quantum feature. Issue #43691 targets milestone 27.0, which is not a shipped release in the notes. Ask the maintainers to name the release that will document post-quantum support, and whether that release will appear in the release notes before it ships.

Keycloak release notes

Questions security leads ask about Keycloak's RSA and EC dependencies

Is Keycloak quantum safe?

No product can be called quantum safe on the basis of the facts available here, and Keycloak's documentation does not make that claim. What is documented is narrower. Realm keys and token signing default to RS256 with 2048-bit RSA keys, and the cryptographic inventory in issue #46336 lists RSA, ECDSA, EdDSA, RSA-OAEP and ECDH-ES as public-key algorithms in use. No post-quantum or hybrid key exchange feature flag appears among the features the Keycloak features guide lists as supported, preview, deprecated or experimental. Work on ML-DSA token signing (issue #43692) was open as of 2026-12-03 with no milestone. Treat the question as unanswered for your version until you confirm the status with the vendor.

Which Keycloak version should we run for post-quantum planning?

The facts do not name a post-quantum-capable Keycloak release, so no version can be recommended on that basis. The Keycloak release notes showed 26.8.2 as the latest version on 2026-12-03, with no release date. The 26.8.0 release notes added encrypted PKCS#8 PEM key support for HTTPS, which is a usability change and not a post-quantum one. Keycloak's FIPS mode needs OpenJDK 21 in the server container, and the 26.6.0 notes say the container continues on OpenJDK 21 for FIPS even though Keycloak supports OpenJDK 25. Choose a supported release that your team can keep patched, then confirm with the vendor which release, if any, will carry post-quantum features and when.

Does moving to stronger key settings cost extra?

The cost depends on what changes and who does the work, and the facts give no prices, so none are stated here. Costs tend to rise with the number of realms and clients that need new keys, the rollout of any new key size or algorithm to federated relying parties, testing against the JDK and any adapters, and the staff hours for each step. Realm keys are generated automatically, and the realm keys guide suggests rotating keys every three to six months, so rotation is a recurring task rather than a one-time one. Ask any quote to separate one-time work (inventory, configuration, testing) from recurring work (rotation, upgrades, monitoring), and to state which client libraries and partners it assumes will be updated.

What breaks if RSA key sizes or algorithms change in Keycloak?

Relying parties that validate tokens or SAML assertions against a realm key will fail if they cannot process the new key type or algorithm. In strict FIPS mode, RSA keys must be at least 2048 bits and RSA1_5 is disallowed by default, so a configuration that depends on smaller keys or RSA1_5 will fail there. Outside strict FIPS mode, RSA keys below 2048 bits and RSA1_5 remain supported, according to issue #46336. Under FIPS, the default argon2 password hashing is not supported, so a password policy change can break logins. Test each client, adapter and SAML service provider against a staging realm before changing keys in production, and keep the passive key set available until verification is complete.

What should we ask Keycloak or our vendor about post-quantum support?

Ask for the release in which each post-quantum feature is supported, and whether it is on by default, preview or experimental. Ask whether hybrid key exchange in TLS 1.3 (issue #43691, flag PQC_TLS_KEY_EXCHANGE) will require a specific JDK, and which JDK version the vendor tests against. Ask whether ML-DSA signing (issue #43692) will cover token issuance and verification, and whether JWK publication of PQC keys has been settled, since the maintainer said in discussion #40496 that it had not. Ask whether SAML will change, given the IETF draft work noted in issue #45168. Request the written position on the non-goals in issue #43690, which state that making PQC the default and deprecating legacy algorithms are out of scope for that stage.

Can our team inventory Keycloak's RSA and EC dependencies ourselves?

Yes, a team that runs Keycloak can start the inventory itself. The main places to check are realm key providers (rsa-generated, rsa and java-keystore), the signing algorithms used by each client, the SAML key and signature settings, the HTTPS certificate and key files, the truststore for outgoing TLS, and the JDK and FIPS settings. The TLS guide lists the https-protocols default of TLSv1.3,TLSv1.2 and the https-port default of 8443, which help you confirm what is live. Outside help becomes useful when you need to cover many realms, federated partners, custom providers or adapters, or when an auditor will review the evidence. DeployOpen can plan and document that work in your environment, but it does not issue audit reports or certifications.

Why does Keycloak's token signing matter less than its TLS settings?

The maintainer's view in discussion #40496, dated 2025-10-22, is that token signing is a lower priority than TLS because tokens are short-lived and the store-now-decrypt-later concern is greater for encrypted traffic. That is one maintainer's stated priority, not a risk assessment for your deployment. Your own exposure depends on how long tokens and recorded sessions must stay confidential. TLS configuration is the part you control directly through https-protocols, https-cipher-suites and the certificate settings, and the TLS guide says unsupported values are silently ignored, so verify the negotiated settings with a test client after any change.

How DeployOpen helps with post-quantum readiness work on Keycloak

DeployOpen approaches the question of which Keycloak functions depend on RSA and elliptic-curve keys as a written, scoped inventory tied to your own realms, clients and TLS settings. We check each dependency against the Keycloak version and JDK you run, so the findings reflect what your deployment does today.

How we scope

  • We confirm your Keycloak version, JDK and FIPS mode before listing any algorithm dependency.
  • We agree in writing which realms, clients, SAML integrations and TLS endpoints are in scope.
  • Engagements are fixed-scope, with deliverables and timelines confirmed before work starts.

How we build

  • We map realm key providers, token signing algorithms and key encryption settings in your environment.
  • We review HTTPS, management interface and truststore configuration against the Keycloak TLS guide.
  • We test current signing and encryption behavior, including RSA key sizes and RSA1_5 usage.

How we hand over

  • You receive a written inventory of each public-key dependency, with the Keycloak version it applies to.
  • The report separates what your current release supports from what is only in development.
  • We document each setting you can change now and the tests to run after any change.

How we support

  • Ongoing support and upgrade work are available as a retainer after the handover.
  • Retesting can follow each Keycloak upgrade, so your inventory stays current with the release you run.
  • Ask any vendor or implementation partner to confirm in writing which Keycloak release they are working against.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.