adamant-kite-43734
11/25/2023, 12:58 PMcreamy-pencil-82913
11/25/2023, 4:22 PMadorable-analyst-63589
11/25/2023, 4:24 PMadorable-analyst-63589
11/25/2023, 4:24 PMadorable-analyst-63589
11/25/2023, 4:26 PMmkdir -p /opt/k3s/server/tls
curl -sL <https://github.com/k3s-io/k3s/raw/master/contrib/util/generate-custom-ca-certs.sh> | DATA_DIR=/opt/k3s bash -
k3s certificate rotate-ca --path=/opt/k3s/server
I didn't copy over the credentials as I wanted a new root CA
I then ran systemctl restart k3s
I expected things to start breaking by now, so nothing happened, when and ran systemctl restart k3s
on the other 2 control nodes on the cluster, still nothingadorable-analyst-63589
11/25/2023, 4:27 PMadorable-analyst-63589
11/25/2023, 4:27 PM/opt/k3s/server/tls
did not exist, repeated the same steps, no issues on clusteradorable-analyst-63589
11/25/2023, 4:47 PM/var/lib/rancher/k3s/server/tls/server-ca.crt
it seems the certs were never rotated, they're still issued at the day I created the serveradorable-analyst-63589
11/25/2023, 4:57 PMadorable-analyst-63589
11/25/2023, 4:59 PM/var/lib/rancher/k3s/server/tls/
into another folder, and it generated the same old certificates, so I assume the old certs in the store didnt actually get rotatedadorable-analyst-63589
11/26/2023, 10:05 AMadorable-analyst-63589
11/26/2023, 10:57 AM