Public Key Management and Rotation
Rotate your Keymint offline signing key in stages, so every app version you ship trusts the next key before it signs a license.
Keymint signs offline .lic files with your workspace's Ed25519 key and keeps the private key encrypted. Your app verifies them with the public keys you bundle. Manage keys under Developer → Public keys.
Each key is Pending (published, not signing), Signing (the one key that signs) or Retired. Your SDK accepts a list of public keys, so an app can trust several at once. Copy all trusted keys copies every key on the page, retired ones included, as a JSON array of PEMs, ready for the publicKeys option.
Rotate safely
- Prepare next key. Keymint creates a pending key. Signing doesn't change.
- Ship an app update that trusts both keys (
publicKeys: [current, next]) and wait until your customers have it. - Make it the signing key. New and renewed licenses are signed with it. The old key is retired; licenses it signed keep verifying in apps that still trust it.
- Delete the retired key once no license it signed is still in use, and drop it from your next app build.
Changed keys too early? Revert within 30 days: the old key signs again and the new one goes back to pending. After 30 days Keymint destroys a retired key's private key so it can't sign again; the key stays trusted until you delete it. You can Cancel a pending key at any time; it never signed anything.
Emergency rotation
If the signing key may have leaked, Emergency rotation makes a new key sign immediately and deletes the old key. It can't be undone. Builds that only trust the old key reject licenses signed from then on, and licenses the old key signed stay valid only in builds that already bundle it, so ship an update with the new key as soon as you can.
See Offline Verification for how apps check .lic files.