Commit 4680780
committed
fix: set cert to HA IP and remove old certs on every start
MeshCentral validates Origin header against its cert CN. When the cert
was generated with hostname 'homeassistant' but browser connects via
IP 192.168.x.x:4430, the origin check fails with 'Invalid origin'.
Two fixes:
1. Set cert in config.json to HA's actual IP address (or cert_url host
for external access) so the generated cert matches what browser sends
2. Remove old .crt/.key files on every start so MeshCentral always
regenerates certs with the current IP/hostname
Bump version to 0.2.9.1 parent ca9858a commit 4680780
2 files changed
Lines changed: 24 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
28 | 31 | | |
29 | 32 | | |
30 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
31 | 37 | | |
32 | 38 | | |
33 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
34 | 48 | | |
35 | 49 | | |
36 | 50 | | |
| |||
43 | 57 | | |
44 | 58 | | |
45 | 59 | | |
46 | | - | |
47 | | - | |
| 60 | + | |
48 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
49 | 70 | | |
50 | 71 | | |
51 | 72 | | |
| |||
0 commit comments