Document the certificate pitfalls behind "Your connection is not private"

The certificate is only valid for the advertised address (advertise_host), the
machine name and localhost: a PC reachable by cable and Wi-Fi has two addresses
and only the advertised one works. README (fr/en) says so; CLAUDE.md lists the
three causes to check in order (certificate issued for a VPN tunnel address,
CA not installed - each machine has its own CA -, other address of the PC),
with the read-only openssl probe that showed 10.2.0.2 in the SAN of a
certificate made while a VPN was active.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Denis
2026-10-26 19:27:55 +01:00
parent 2fdb8f4ea0
commit 97cf2afb53
3 changed files with 7 additions and 0 deletions
+3
View File
@@ -248,6 +248,9 @@ Notes:
- The CA can only sign private addresses (10/8, 172.16/12, 192.168/16, 127/8) and the names `localhost`,
`*.local`, `*.lan` and the machine's own name (`nameConstraints`). Its key `ca.key` stays on the PC (mode 600):
never copy it.
- The certificate is only valid for the **advertised address** (`advertise_host`, the one in the QR code), the machine
name (`<name>`, `<name>.local`) and `localhost`. A PC connected by both cable and Wi-Fi has two addresses: use the
one in the QR code; the other shows "Your connection is not private" even with the CA installed.
- The server certificate is valid for 825 days. `make cert` reissues it without changing the CA, so nothing
needs redoing on the tablet. If the PC's address changes, fix `advertise_host` and rerun `make cert`.
- Tablet browser: use a standalone Chromium browser (Chrome, Brave, Vivaldi, Vanadium…), which trusts