20% off every kit until 31 December. Code SAVE20 is added for you at checkout.

← All guides & playbooks

Engineering guide · Reviewed 30 November 2026

OIDC and JWKS: migrate RSA signing keys to ES256

Your website can serve an ECDSA certificate while its login tokens still use RSA. Check the issuer’s public keys, verify what it signs today, and plan an overlapping key rotation only where the provider supports it.

About 5 seconds. No signup. Public endpoints only; internal systems and private keys need a separate inventory.

The padlock and the login token have different keys

An ECDSA TLS certificate protects the identity of an HTTPS endpoint. An OIDC issuer separately signs ID tokens and sometimes JWT access tokens. RS256 means RSA with SHA-256; ES256 means ECDSA P-256 with SHA-256. Switching your TLS certificate does not rotate those application keys.

Discovery at /.well-known/openid-configuration identifies the issuer and its jwks_uri. That URI often ends in /.well-known/jwks.json, but the path is not universal. Use the documented issuer, including its tenant or authorization-server path. OpenID Connect Discovery specification.

PostRSA inspects public discovery and JWKS endpoints when it can find them. A domain scan cannot infer a private tenant, enumerate all your identity providers, or prove your verifier is configured correctly. A missing result means “not observed”, not “no RSA”.

1. Inventory your trusted issuer and signing keys

# Start with the exact issuer URL configured in your application.
ISSUER='https://login.example.com'
curl --fail --silent --show-error   "$ISSUER/.well-known/openid-configuration" > discovery.json
jq '{issuer, jwks_uri, id_token_signing_alg_values_supported}' discovery.json

# Inspect the returned URI; confirm HTTPS and the expected provider.
# Substitute that verified URI here, rather than guessing its path.
curl --fail --silent --show-error   'https://login.example.com/.well-known/jwks.json' > jwks.json
jq '.keys[] | {kid, kty, alg, use, crv}' jwks.json

kty: RSA shows an RSA public key; kty: EC with crv: P-256 is the key family used by ES256. The optional alg field may be absent. A public RSA key does not prove that every newly issued token uses it. Match a verified test token’s kid and alg, and record which token type and client you tested.

Use a local debugger for tokens, not a public paste service. Decoding is not verification. Pin trusted issuers and an explicit algorithm allowlist; validate signature, issuer, audience, expiry and token type with a maintained library. Never accept an arbitrary token-supplied jku or alg. JWT security best practices.

2. Confirm what your provider actually supports

These observations cover the linked product documentation reviewed on 30 November 2026. A provider accepting an ES256 client assertion does not establish that it can issue ES256 ID tokens. Confirm your exact product, token type, plan and tenant before promising a switch.

  • Auth0: its documentation describes RS256, PS256 and HS256 token signing and overlapping keys for rotation. The reviewed sources do not establish an ES256 issuance switch for every Auth0 application or API. Ask for the supported path for your tenant. Signing algorithms; signing-key rotation.
  • Okta: the OIDC reference describes ID-token signatures as RS256. ES256 in a client-authentication or request-object setting is a separate capability. Do not treat that as an issuer migration control. Okta OIDC reference.
  • Microsoft Entra ID: Microsoft documents asymmetric token signing with examples using RS256 and automatic key rollover. This is not a documented tenant-wide ES256 switch. Verify your resource and token version, and request provider guidance where RSA remains required. Entra access tokens.
  • AWS Cognito user pools: AWS documents RS256 with 2048-bit RSA signing keys. Do not invent an ES256 setting. A different upstream identity provider does not automatically change the algorithm Cognito uses for its own tokens. Cognito token verification.
  • Sign in with Google: Google’s OIDC discovery example advertises RS256 for ID-token signing. The reviewed guide does not document an application toggle to ES256. Record the dependency and monitor provider guidance. Google OIDC documentation.

If ES256 issuance is unavailable, retain correct signature validation and record a supplier dependency. Do not change your allowlist to ES256 and break valid logins, strip signatures, or re-sign third-party tokens as an improvised substitute. A broker or issuer change needs its own trust and session-migration design.

3. Rotate with two public keys and one active signer

This planned sequence applies when you control the issuer or the provider explicitly supports the new algorithm. It assumes the old key is not compromised.

  1. Prepare verifiers first. Test ES256 support in every API, gateway and library. Temporarily allow only the two intended algorithms for this issuer. Confirm unknown-kid refresh behavior without creating an unbounded fetch loop.
  2. Generate the new private key securely. Use your approved signing service or key manager. Give the EC public key a new, unique kid; never reuse the old RSA key ID. Keep private key material out of JWKS.
  3. Publish before using. Add the ES256 public key to JWKS while continuing to sign with RSA. Wait at least the longest effective JWKS/discovery cache TTL across verifiers, proxies and CDNs. Check actual cache behavior, not only the intended header.
  4. Switch the signer. Issue new tokens with ES256 and the new kid. Keep the RSA public key available so outstanding legitimate RSA tokens still verify. Canary the change and watch validation errors, login completion and token refresh.
  5. Drain, then retire. Wait through the maximum remaining old-token lifetime plus permitted clock skew. Account for cached tokens and asynchronous consumers. Remove the RSA key after overlap, let caches refresh, then narrow the verifier allowlist to ES256.

Test mixed keys, an unknown kid, a stale cache, expired tokens, wrong issuer/audience and rollback before production. Refresh tokens may be opaque and long-lived; check whether refresh produces newly signed tokens. Rotating keys is not the same as revoking sessions. If an RSA break or key compromise is confirmed, follow incident guidance: overlap may preserve attacker access and forced reauthentication may be necessary.

Keep a record your team can use

For each issuer record the owner, discovery URL, observed key IDs, token lifetimes, cache TTLs, consumers, provider constraints, canary result and retirement date. The Evidence Pack helps communicate those findings; the Fix-It Kit turns the settings you control into a work list.

ES256 removes an RSA signature dependency where supported. It still relies on classical elliptic curves. Follow the post-quantum migration checklist for the broader inventory and check all the public parts of your website.

Choose your next step

The free check is a starting point. Get the instructions, the evidence to send, or help with the review.

Fix-It Kit

£31.20was £39 + VAT

Fix what you control with your developer or AI coding tool. Includes a tailored checklist, prompts and read-only checks.

Buy the Fix-It Kit

Evidence Pack

£79.20was £99 + VAT

Put your findings in writing: a six-page PDF, editable customer and board documents, plus the complete Fix-It Kit.

Buy the Evidence Pack

Zero-Access Review

£1,500 + VAT

A fixed-fee engineering review of what a public scan cannot see. We never log in to your production systems.

Book a review

Questions engineers ask

Does an ECDSA TLS certificate remove RS256 from my login?

No. TLS authenticates the HTTPS endpoint. RS256 signs application tokens with a separate RSA key. Inspect the issuer’s discovery document, JWKS and a securely handled test token independently.

Does an RSA key in JWKS prove new tokens use RS256?

No. It may validate older tokens, support another client, or be a future key. Compare a verified token’s kid and alg with the trusted issuer’s keys and settings. Discovery metadata lists capabilities rather than proving every token’s actual algorithm.

Is ES256 post-quantum?

No. ES256 is ECDSA P-256 with SHA-256, a classical elliptic-curve signature. It removes an RSA signing dependency where supported, but is not a migration to post-quantum signatures.

When can I remove the old RSA key?

After signing has stopped, every legitimate old token has expired including allowed clock skew, and verifier caches have refreshed. Keep overlap long enough for your measured cache behavior. A confirmed compromise requires an incident response, which may invalidate tokens immediately.

PostRSA Checkout

Checkout

Total

Billing
Have a promo or referral code?

Payment is processed by Stripe. See terms and privacy.

Fixed fee · Paid securely via Stripe · No production access required