docs: certificate renewal in the browser

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AeFqV96dVeBX94inzcgZKw
This commit is contained in:
2026-11-18 23:19:40 +01:00
co-authored by Claude Sonnet 5.5
parent dfe35b422d
commit 642c144b96
+12
View File
@@ -47,6 +47,18 @@ revoked. There are no accounts.
- **Recovery** (`allmende recover`): phrase in, all-devices revocation out, fresh - **Recovery** (`allmende recover`): phrase in, all-devices revocation out, fresh
device enrolled, the node's own listings re-signed (`seq + 1`) from the new device enrolled, the node's own listings re-signed (`seq + 1`) from the new
device. The same command renews the yearly certificate. device. The same command renews the yearly certificate.
- **Renewal in the browser** (no recovery, no terminal): within the last 30
days of the certificate the owner page says so and asks for the 12 words. The
node derives the identity key for that one request, signs a **new
certificate for the same device key** (so the peer ID stays, nothing is
revoked, no new admin token), saves `device.cert`, signs again (`seq + 1`)
every own listing that would outlive the old certificate (a listing is
refused once its certificate has expired), and forgets the key and the
words. A phrase of another identity is refused. An identity made with
`init --no-phrase` cannot be renewed. A node whose certificate has already
expired does not start, so then only `allmende recover` helps. The phrase
crosses the connection to the node like the admin token does: over anything
but localhost put the node behind TLS.
- **Peer IDs change on recovery** because the device key is the libp2p - **Peer IDs change on recovery** because the device key is the libp2p
identity. Anyone who listed the old peer ID as a bootstrap address has a identity. Anyone who listed the old peer ID as a bootstrap address has a
stale entry; the recovered node dials out to its own bootstrap peers. stale entry; the recovered node dials out to its own bootstrap peers.