I myself removed all the certificates from trust store cause back then I do not know about them. But I want to know how to put them back so my tls work should work again. In production we do not want to do any mistake that’s why we are testing everything which we can fix immediately.
This ui-cert.crt is different, trust store does not have other server certificates which are in the cluster and I am manually changing the certs in the /var/snap/lxd/common/lxd/ Can you please guide me how to add server certificate again in the store?
root@lx-stg1:/var/snap/lxd/common/lxd# lxc config trust ls
+--------+-------------+-------------+--------------+------------------------------+------------------------------+
| TYPE | NAME | COMMON NAME | FINGERPRINT | ISSUE DATE | EXPIRY DATE |
+--------+-------------+-------------+--------------+------------------------------+------------------------------+
| client | ui-cert.crt | | 0754cb5e33b4 | Mar 17, 2025 at 5:57am (UTC) | Dec 12, 2027 at 5:57am (UTC) |
+--------+-------------+-------------+--------------+------------------------------+------------------------------+
Like this, this is my other lxc cluster - just for ref
root@lxc-test-1:~# lxc config trust ls
+--------+------------+-----------------+--------------+------------------------------+-----------------------------+
| TYPE | NAME | COMMON NAME | FINGERPRINT | ISSUE DATE | EXPIRY DATE |
+--------+------------+-----------------+--------------+------------------------------+-----------------------------+
| server | lxc-test-1 | root@lxc-test-1 | bb11e7e11157 | May 11, 2025 at 1:37pm (UTC) | May 9, 2035 at 1:37pm (UTC) |
+--------+------------+-----------------+--------------+------------------------------+-----------------------------+
| server | lxc-test-2 | root@lxc-test-2 | 890b4da409a1 | May 11, 2025 at 1:41pm (UTC) | May 9, 2035 at 1:41pm (UTC) |
+--------+------------+-----------------+--------------+------------------------------+-----------------------------+
I’m facing this both on incus and lxd, I just shared the lxd data.
No first one is a cluster of 3 and i deleted all the 3 server type certificates from the trust store and after that my cluster never went accessable. Now I want to add all the members back to normal but don’t know how to do this.
When we add a new member this function handles the certs. As per my debugging lxd generated certs are valid for 10 year what happened afterwards? like How one can update the certs?