# Keys

> The keys that sign your realm's tokens and seal its data, each realm's own, and never handed out.

Every realm has keys of its own: signing keys that make its tokens verifiable, and sealing keys that encrypt what it
stores. They belong to the realm alone, and no API returns them, to you or anyone else. You decide when they change:
you rotate and revoke them on your own authority, whenever you choose, and every change is recorded on the audit
trail. They never rotate on their own.

The one idea to hold: a new signing key is **published before it signs**. Apps and APIs cache the realm's public
keys, so a rotation names a moment at least the publish lead away, and by then every verifier already holds the new
key.

<CardGrid>
  <LinkCard title="Signing keys" description="What signs which tokens, and how rotation and revocation work." href="/platform/keys/signing-keys/" />
  <LinkCard title="Rotate signing keys" description="Move to a new key without any app refusing a token." href="/platform/guides/rotate-signing-keys/" />
  <LinkCard title="Bring your own key" description="Sign with a key and certificate chain your organization supplies." href="/platform/keys/bring-your-own-key/" />
</CardGrid>

## Capabilities

### Sign tokens

| Capability | What it gives you |
|---|---|
| [Signing keys](/platform/keys/signing-keys/) | A key per algorithm, ES256, RS256 and PS256, for each realm |
| [Rotation](/platform/keys/signing-keys/#rotation) | A new key published ahead of use, so no verifier is caught out |
| [Revocation](/platform/keys/signing-keys/#revocation) | Destroy a version, so nothing it signed verifies again |
| [Published key set](/platform/guides/what-clients-discover/) | The public keys at `/oauth2/jwks`, with the cache time you set |
| [Bring your own key](/platform/keys/bring-your-own-key/) | Import your own signing key and certificate chain, once it's turned on for your realm |
| [Internal signing key](/platform/keys/signing-keys/#the-internal-signing-key) | A separate key for tokens that never leave Cvyūh, which you never need to touch |

### Seal data

| Capability | What it gives you |
|---|---|
| [Storage key](/platform/data/encryption/) | A versioned key per realm that seals its stored sessions and sensitive fields |
| [Request-object encryption key](/workforce-identity/applications/client-security/request-objects/) | A published key apps encrypt their request objects to |
| [Secrets key and crypto-shredding](/secrets-store/keys-and-protection/crypto-shredding/) | Destroy the realm's secrets key, and every secret with it |
| [Device certificate authority](/endpoint-management/enrollment/device-enrollment/) | A certificate authority per realm, beneath its parent's, that issues the certificates enrolled devices hold |

### Run them

| Capability | What it gives you |
|---|---|
| [Changes on your own authority](/platform/keys/signing-keys/#audit-record) | Every key change made with your own rights, and recorded on the audit trail |
| [Keys at every site](/platform/sites/multi-site-realms/) | A realm's keys at every site that serves it |

## Coming next

See [What's next for keys](/platform/keys/whats-next/):

- [Ed25519 signing](/platform/keys/whats-next/#ed25519-signing): a fourth, smaller and faster signing algorithm.
- [Keys in the dashboard](/platform/keys/whats-next/#keys-in-the-dashboard): list, rotate and import keys from a screen.
- [Read back an imported key](/platform/keys/whats-next/#read-back-an-imported-key): see the key you brought, as you
  imported it.

## Guides

- [Rotate signing keys](/platform/guides/rotate-signing-keys/)
- [Revoke a signing key](/platform/guides/revoke-a-signing-key/)
- [Check what clients discover](/platform/guides/what-clients-discover/)
