SellMyCode Developers
Licences

Key rotation

Every answer names its key in kid. GET /api/license/public-key lists every key with a status:

status Meaning
active signs every answer now β€” exactly one key at a time
next announced, not signing yet β€” add it to your software now
retired no longer signs; harmless to keep, never needed again
revoked its secret may have leaked β€” remove it and reject answers signed with it

Keys published right now:

kid status public key
k1 active 5Uk3p1+J0PXzJkwS4wVFvTN9GcHpJzX5ClRI8zlI0yQ=
k2 next erOiojOdS5F/IfhPMO9gvjAvuEPVapIadTDaWU0z83o=
⚠️

Important: Ship every next key in your software now, next to the active one. The next key is a standby: its secret is kept offline, away from our servers, so that if the active key were ever exposed it can take over at once β€” and installations that already know it keep working with no update.

  1. Planned rotation: the new key is published as "next" at least 90 days before it starts signing, and every author with a licensed item is emailed. Ship an update that knows both keys during that window.
  2. On the switch date the new key becomes "active" and the old one "retired". Installations that only know the old key can no longer verify new answers; they keep running on their cached answer until its grace_until, then report unlicensed.
  3. Emergency rotation, if a secret is ever exposed: the standby next key signs immediately and the old one is marked "revoked". Installations that embed the standby key keep working; the others fall back to their cached answer until grace_until. Authors are emailed the same day and should release an update that removes the revoked key β€” and adds the new standby key we then publish.
  4. A kid is never reused.
⚠️

Warning: Embed the keys in your code (a kid β†’ key map). Never download the key at runtime and trust it β€” a fake server would simply hand out its own key. The public-key endpoint is for building and checking your release, not for installations. An answer whose kid you do not know is unverified: keep your cached state.

Was this page helpful?