From 642c144b96b2dd506a293807a1f7c5fa80cf4ad4 Mon Sep 17 00:00:00 2001 From: Nils Stinnesbeck Date: Wed, 18 Nov 2026 23:19:40 +0100 Subject: [PATCH] docs: certificate renewal in the browser Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01AeFqV96dVeBX94inzcgZKw --- docs/PROTOCOL.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/PROTOCOL.md b/docs/PROTOCOL.md index 44898e9..89b427c 100644 --- a/docs/PROTOCOL.md +++ b/docs/PROTOCOL.md @@ -47,6 +47,18 @@ revoked. There are no accounts. - **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. 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 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.